Getting a function traceback in C
Often when you get close to a programming error, you want to know
how you got into that situation, and especially what the traceback
of calling functions is. To get this information, issue the command:
LIST CALLS ;
Example: sample C program for debugging
For example, if you run the CALC example with
the commands:
AT ENTRY read_token ;
GO ;
LIST CALLS ;
the Log window will contain something like:
At ENTRY in C function CALC ::> "USERID.MFISTART.C(READTOKN)" :> read_token.
From LINE 18 in C function CALC ::> "USERID.MFISTART.C(CALC)" :> main :> %BLOCK2.
which
shows the traceback of callers.