TRACEON/TRACEOFF

Concept Link IconSee also

Enable tracing of function calls.

WebVue support - Yes.

Syntax

TRACEON;

or

TRACEOFF;

There is no return type.

Execution

Trace allows the name of the calling program, the name of the called program, and the name of the called function to be known. The trace appears in the results area of the program dialog box.

The TRACEON instruction is active for all functions of the same program until the TRACEOFF instruction is encountered.

If executed in a WebVue session context this instruction is processed by the computer that hosts the web back end and the output is created on that computer.

Example

SUB Main()

DIM intResult as Integer;

 

TRACEON;

procedure1();

procedure2("Parameter1");

intResult = procedure4();

PRINT("Return from procedure = ",intResult);

TRACEOFF;

END SUB


Any nested function calls will also be traced.