The invention discloses a debugging method,
electronic equipment and a readable storage medium, in the method, after a storage controller receives an instruction reading notification sent by a host, a to-be-executed submission instruction is read from a submission
queue; in the process of executing the submission instruction, if an error is detected, determining error basic information and error detail information; adding the error basic information into a core control field in the completion instruction, and adding the error detail information into an error detail field of the completion instruction according to an invalid
byte identifier, an error subtype code and a context parameter form; and putting the completion instruction into a completion
queue, and sending a command reading notification to the host, so that the host positions an error reason in combination with the error basic information and the error detail information. According to the method, the completion instruction is optimized, so that the completion instruction can carry not only the error basic information but also the error detail information, the host can quickly position specific error reasons, manual
error analysis is avoided, the positioning efficiency is improved, and the debugging efficiency is accelerated.