US 12,135,634 B2
Dynamic tracing of variables at runtime
Umesh K, Bangalore (IN); and Jovin Jijo, Thrissur (IN)
Assigned to SAP SE, Walldorf (DE)
Filed by SAP SE, Walldorf (DE)
Filed on Feb. 27, 2023, as Appl. No. 18/114,631.
Prior Publication US 2024/0289256 A1, Aug. 29, 2024
Int. Cl. G06F 11/36 (2006.01)
CPC G06F 11/364 (2013.01) 17 Claims
OG exemplary drawing
 
1. A computer-implemented method performed by a computer system comprising a memory and at least one hardware processor, the computer-implemented method comprising:
storing a template in a data store, the template comprising a tracing configuration and a description of the template, the description indicating that use of the template comprises tracing of a variable;
displaying, within a first user interface displayed on a first computing device, a selectable user interface element in association with the description of the template;
receiving a user input associated with a source code file via the first user interface, the source code file comprising source code of a software application, the user input comprising a user selection of the selectable user interface element;
retrieving the tracing configuration from the template in the data store based on the user selection of the selectable user interface element, the tracing configuration comprising a line number of the source code and the variable within the source code;
setting a breakpoint in the source code at the line number using the tracing configuration;
tracing the variable during execution of the source code, the tracing comprising determining a value of the variable using the breakpoint in the source code and creating a call stack based on the execution of the source code; and
storing the value of the variable and the call stack in a log.