Debugger : Debugger Commands : CANCEL TRACE Command

CANCEL TRACE Command

The CANCEL TRACE command allows you to turn tracing off for some or all objects previously set by one of the SET TRACE commands. You may turn tracing back on by re-entering the appropriate SET TRACE command.

Specify which traces to cancel by using the same syntax as when they were set (using SET TRACE). For example, here are some valid commands to cancel traces:

Pdb > CANCEL TRACE
Pdb > CANCEL TRACE ACTIVITY
Pdb > CANCEL TRACE EVENT INTERNAL
Pdb > CANCEL TRACE CONDITION
disconnected, c*
Pdb > CANCEL TRACE STATE sampling^
Pdb > CANCEL TRACE STEP

The commands to cancel traces do not have to exactly correspond to the commands that turned them on. For example:

Pdb > SET TRACE EVENT e*g, power_on, s*
Pdb > CANCEL TRACE EVENT energizing,
submerging
Pdb > CANCEL TRACE EVENT *g
 
 

would leave a trace on for the event power_on and all events that begin with “s” and do not end with “g”. Request to cancel a trace that was not set is ignored.