Setting conditional tracepoints

Conditional tracepoints are tracepoints that are executed only when specified conditions are met. For example, you can set a tracepoint that only becomes active after a specified function has been executed a specified number of times. You can set conditional tracepoints only if you are using an ETM-based target.

To set a conditional tracepoint:

  1. Select Debug®Tracepoints from the Code window to display the Tracepoints menu.

  2. Select one of the options:

Set Tracepoint... for more general conditional tracepoints.

Trace on X after Y (and/or Z)...

Trace on X after Y executed N times...

Trace on X after A==B...

Trace if A==B in X...