Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
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 Debug window or to file, as configured in the Analyzer script.
How to
To set Tracepoints
Step |
Action |
See also |
---|---|---|
1 |
Open the source code to debug in the source code editor. |
|
2 |
Find the appropriate code line, right-click in the left margin and select the Add Tracepoint Marker option. The breakpoint properties window is displayed.
|
|
3 |
|
|
4 |
In the Log field type the required Trace statement. |
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, precede the variable with a $ token. You can also include trace statements on any type of breakpoint.
Learning Center topics
• | (Alt+F1) | Build and Debug | Debug | Add Tracepoint |