Understanding the program execution trace

This is an introduction to the program execution trace.

The program execution trace prints all function calls of your program, with the values of parameters passed to and values returned from functions.

Important: Sensitive and personal data may be written to the output. Make sure that the log output produced by the runtime trace is written to files that can only be read by application administrators.

This tool can help to understand the code structure of complex programs, and identify bugs in your code.

Important: If you plan to use the program execution trace on a production site, pay attention to the amount of data produced by the log: Using the trace can fill up the disk and potentially crash the system in a very short time.
To enable the program execution trace, start fglrun with the -trace option, for example:
fglrun --trace myprog
The function call stack trace will be printed to the stderr stream:
Enter prog.main()
  Enter prog.func1(12499,"abcdef") from prog.main at line 8
    Enter prog.func2(12499,1) from prog.func1 at line 16
    Return 12500 from prog.func2 at line 23
    ...
Note: The output format of FGL trace is for debug purpose only and can change in future product releases.

Additional control is available with FGLTRACE* environment variables, as described in the usage topic.