Trace Execution

The following GPP system variables are used to invoke execution tracing:

TRACE_EXECUTE:   Turn tracing on (when TRUE_) and off (when FALSE_).

Once TRACE_EXECUTE is set to TRUE_, GPP starts echoing a detailed log of the program execution to a log file named gpp2trace.txt (in the output folder). The same trace information is also displayed on the GPP2 message window, but only in single-step mode (see below).

The execution tracing log file details every statement being executed, including the GPP program line number, and then shows the result of the execution.

Examples:

Executing: 0064 X = (X_CURPOS + 20.0)

Result:  X = 35.333333              // shows internal value

Executing: 0065 IF(VAR_SET(Arr[2]))

Condition: TRUE value

Executing: 0066 OUTPUT X CONTROL(10) "abc"

Output:  "35.333"                   // the formatted value

Output:  Char(10)                   // new-line character

Output:  "abc"

Executing: 0067 GPP_CALLLPROC myproc (1, "abc")

Parameters myproc.step = 1, myproc.msg = "abc"

Notes:

Executing: 0064 X = (X_CURPOS + 20.0)

Result:    X = Y = 35.333333          // X and Y are identical

Some functionality may be dependent on the product package. Contact your Reseller if you require a license.