Trace Statements

Tracepoints are set in the code editor. Like breakpoints, they are placed on a line of code. When that line of code executes, the Execution Analyzer evaluates and prints the statement either to the Debugger output window or to file, if this has been configured in the Analyzer script.

How to:

To set Tracepoints, follow the steps below:



See also


Open the source code to debug in the integrated source code editor



Find the appropriate code line, right-click in the left margin and select the Analyzer | Add Tracepoint Marker context menu option






Right-click on the Tracepoint and choose the Properties context menu option



In the Log field type the required Trace statement

Testpoint Management

Specifying Tracepoints:

Using the example in the image above, we could output the number of people getting off a train by using the following statement:

There were @Passengers before @PeopleOFF got off the train

To print a variable, precede the variable name with the @ token. If a variable represents a string you should precede the variable with a $ token.

Learning Center topics:

  • (Alt+F1) | Build and Debug | Debug | Add Tracepoint