Patent ID: 8495587

Claim:
A computer program product comprising: a non-transitory computer readable storage device having computer readable instructions stored thereon, wherein the computer readable instructions when executed by processor, are configured to perform operations comprising: providing one or more trace code elements for one or more selected subroutines of a computer program stored on internal memory of a digital computer, said trace code elements being operable to provide trace data for said selected subroutines; selecting a subroutine as a trigger code element; processing said computer program and monitoring the call stack for said trigger code element; determining a call depth limit for said trigger code element, the call depth limit defining positive and negative call depths relative to said trigger code element; enabling said trace code elements in response to said trigger code element being present in said call stack only for those selected subroutines within said call depth limit relative to said trigger code element; and enabling said trace code elements for each said selected subroutine simultaneously present in said call stack in response to a determination that said trigger code element is identified in said call stack.