×

Method and system for tracing and displaying execution of nested functions

  • US 20030159133A1
  • Filed: 09/05/2002
  • Published: 08/21/2003
  • Est. Priority Date: 10/26/2001
  • Status: Active Grant
First Claim
Patent Images

1. A method for identifying errors in the source code stored on a computer of program components comprising nested functions which may use return codes and executed in a multithread environment, said method comprising the steps of:

  • using an editor operating on the computer, adding in the source code of said components at least the following macros;

    an ENTRY macro at the beginning of each function, an EXIT macro at the normal execution end of each function, a TRACE macro wherever a specific information needs to be dumped and a QUIT macro in the code in the place where an unexpected condition occurs;

    compiling source code into executable code using the code source compiler on the computer;

    executing said executable code on the computer including trace macro code, each time an ENTRY or EXIT macro being executed, logging a trace record in a trace file comprising the name of the corresponding function, each time a TRACE macro being executed, logging a trace record in the trace file comprising the dumped specific information, and, each time a QUIT macro being executed, logging a trace record in the trace file comprising the name of the corresponding function and jumping to the execution of the EXIT macro of said corresponding function.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×