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 OUTPUTThe 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.
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:then, from that moment (until changed by other commands), the session log is only written into the file.