FIELD: computer equipment.
SUBSTANCE: invention relates to computer equipment. Dual-mode debugger can debug native code or interpreted code. Transitioning between modes can be triggered by defined bailout conditions. Program can be debugged by attaching a debugger and compiling the program into native code under the debugger. At defined points in the program, debugging can transition from native mode to interpreted mode. Debugging the native code can stop, current state can be captured, and an interpreter can be instantiated. Interpreter stack can be created and can be populated with the captured current state. Debugging operations which involve execution control: pausing execution, continuing execution, stepping into, out of or over a section of code and so on, can occur in interpreted mode, which is typically easier to implement. Debugging operations which involve inspection and modification of variables can occur in native mode.
EFFECT: technical result is transitioning from debugging the native code to debugging the interpreted code for the program.
10 cl, 7 dwg
Authors
Dates
2018-10-05—Published
2014-06-03—Filed