Patent ID: 8745596

Claim:
A method of debugging a debuggee process, comprising: compiling a description of instrumentation as an instrumentation method having processor-executable instructions to be called from within a target method, the compiling under control of a debugger; writing the instrumentation method with the debugger in a debuggee; writing a new target method to supplant the target method with the debugger to include the instrumentation method into the debugger-selected location in the debuggee, wherein the new target method includes a first portion of the new target method prior to the debugger selected location and a second portion of the new target method subsequent to the debugger selected location; saving a state of the debuggee process of the first portion of the new target method prior to the debugger-selected location in the debuggee process; calling the instrumentation method from the new target method written in the debuggee during debuggee execution without executing the debugger; and restoring the state of the first portion of the new target method prior to the debugger-selected location of in the debuggee process; and resuming the debuggee process at the second portion of the new target method subsequent to the debugger selected location.