摘要 |
Disclosed aspects include identifying basic blocks of a program. For each basic block, the compiler inserts an identifier that includes the function name, and is coupled with a counter variable. In response to generating the identifier coupled with the counter variable, the program is compiled. During program execution, the counter value is incremented in response to a call of the basic block when executing the program. In response to incrementing the counter value, the counter value coupled with the identifier is displayed. |
主权项 |
1. A system for debug management, the system comprising:
a memory having a set of computer readable computer instructions, and a processor for executing the set of computer readable instructions, the set of computer readable instructions including: identifying a set of basic blocks of a program; generating, by a compiler, a counter coupled with an identifier corresponding to a basic block of the program; compiling, in response to generating the counter coupled with the identifier, the program; initiating execution of the program; calling the basic block, wherein calling the basic block indicates to trigger incrementation of the counter; incrementing the counter; detecting, in response to incrementing the counter, an error event which is detached from the basic block; establishing, to tend to the error event which is detached from the basic block, a breakpoint linked with the basic block corresponding with the identifier coupled with the counter; determining, based on an outer-to-inner criterion, a basic block order for debugging; displaying, in response to incrementing the counter, the counter coupled with the identifier corresponding to the basic block of the program; and displaying, to load a single page having the error event, the basic block in the basic block order. |