A method for detecting a malfunction of a software solution of a means for monitoring and controlling an internal combustion engine, this solution being configured to generate data representing the instant of interruption of fuel injection, said monitoring and control means being electrically connected to a hydroelectric servovalve of an injector of said internal combustion engine, the method comprising:
- acquiring data by data acquisition means which are connected to measurement means fixed to an injector body and configured to emit data representing closure instants of an injection nozzle,
- recording the data generated by the software solution and the data emitted by the measurement means, over a predetermined duration,
- synchronizing the data generated by the software solution and the data emitted by the measurement means, and
- comparing the data generated by the software solution and the data emitted by the measurement means, so as to identify possible discrepancies between these data, the software solution being considered to be malfunctioning when the discrepancies between the compared data do not satisfy predefined criteria.