| |||
| Home > Tracing Tutorial > Collecting trace on a running target > Capturing trace by disabling tracing | |||
To capture trace by disabling tracing:
Select Clear Trace Buffer from the View menu of the Analysis window. The captured trace is cleared.
Click Run on
the Debug toolbar to restart execution.
Select Tracing Enabled from the Edit menu of the Analysis window. Trace capture is disabled, as shown in the status line at the bottom of the Analysis window. Do not stop the target running at the moment. When you disable tracing, the captured trace is displayed. Figure 10.66 shows an example:
The captured trace might be different to that shown here, because it depends on what has been captured at the moment tracing is disabled.
The target continues running, and you can analyze the captured trace.
You can update the captured trace again if required. To do this:
Select Tracing Enabled from the Edit menu of the Analysis window to enable tracing again.
Select Tracing Enabled from the Edit menu of the Analysis window to disable tracing. The captured trace is updated.
After
a short time, click Stop on the Debug toolbar
to stop execution. The captured trace remains intact.