Getting a LangX COBOL program traceback

Often when you get close to a programming error, you want to know what sequence of calls lead you to the programming error. This sequence is called a traceback or a traceback of callers. To get the traceback information, enter the following command:

LIST CALLS

Example: sample LangX COBOL program for debugging

For example, if you run the example with the following commands, the Log window displays the traceback of callers:

LDD (COB03O,COB03AO) ;
AT ENTRY COB03AO ;
GO ;
LIST CALLS ;

The Log window displays information similar to the following:

At ENTRY in LangX COBOL program COB03O ::> COB03AO.
From LINE 74 in LangX COBOL program COB03O ::> COB03O.