1.2 Debugger Commands

In this section we describe debugger commands which can be used when the debugger is run as a standalone program.

Most commands can be abbreviated to one or two letters; e.g., "h(elp)" means that either "h" or "help" can be used to enter the help command (but not "he", "hel", "H", "Help", or "HELP"). Arguments to commands must be separated by white space (spaces or tabs). Optional arguments are enclosed in square brackets ("[]") in the command syntax; the square brackets must not be typed. Alternatives in the command syntax are separated by a vertical bar ("|").

Entering a blank line repeats the last command entered. Exception: if the last command was a "list" command, the next 11 lines are listed.

Commands that the debugger doesn't recognize are assumed to be Python statements and are executed in the context of the program being debugged. Python statements can also be prefixed with an exclamation point ("!"). This may be a good way to inspect the program being debugged; it is even possible to change a variable or call a function. When an exception occurs in such a statement, the exception name is printed but the debugger's state is not changed.

The debugger supports aliases. Aliases can have parameters which allow a certain level of adaptability to the context under examination. See 1.2.12.



Subsections
See About this document... for information on suggesting changes.