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

CANCEL OUTPUT Command

To stop recording the debugging session, you use the CANCEL OUTPUT command in one of the following three forms:

Pdb > CANCEL OUTPUT FILE
Pdb > CANCEL OUTPUT TERMINAL
Pdb > CANCEL OUTPUT

The first command stops recording into the most recently used logging file (either specified by a SET FILE command or debug.log).

The second command stops displaying trace messages on the terminal.

Finally, the third command halts the logging of the session in the file and at the terminal.

Remember that in all cases, the commands and Debugger’s responses continue to be displayed.

For example, you enter:

Pdb > SET OUTPUT

 

This causes all the output of the Debugger to be written into the file debug.log as well as displaying it on the screen. If later in the session, you invoke:

Pdb > CANCEL OUTPUT TERMINAL

then, from that moment (until changed by other commands), the session log is only written into the file.