Debugger : The Set File, Set Output And Cancel Output Commands : CANCEL BREAK Command

CANCEL BREAK Command

To delete breakpoints that become unnecessary for controlling the prototype execution, use the CANCEL BREAK command with a list of breakpoint labels as the argument.

For example:

Pdb > CANCEL BREAK label*, new
 

deletes all breakpoints whose name starts with “label” and also the breakpoint “new.”

Note: Canceling a breakpoint does not mean that the effect of its associated DO clause is also automatically cancelled.

Consider again the following breakpoint definition:

Pdb > SET BREAK bp_2 e2 DO SET BREAK bp_3 e3
DO SHOW DATA x END END
 

Suppose that bp_2 is cancelled after it was reached at least once, that is, after its DO clause was executed. Then breakpoint bp_3 remains active, until explicitly cancelled by another command.

Another example:

Pdb > SET BREAK bp_4 e4 DO SET TRACE ACTIVITY;
CANCEL BREAK bp_4; GO END
 

Here, activity tracing is started after the first occurrence of event e4, and continues until explicitly cancelled.

To delete all breakpoints, enter:

Pdb > cancel break *