Pdb Commands
[Pages:1]Pdb Commands
Physics 91SI, Spring 2013 Rex Garland and Gabe Ehrlich
Startup and Help
python -m pdb .py[args] help [command]
within a python file: import pdb ... pdb.set_trace()
begin the debugger view a list of commands, or view help for a specific
command
begin the debugger at this line when the file is run normally
Navigating Code (within the Pdb interpreter)
l(ist) w(here) n(ext) s(tep) r(eturn)
Controlling Execution
list 11 lines surrounding the current line display the file and line number of the current line execute the current line step into functions called at the current line execute until the current function's return is
encountered
b [#] b c(ontinue) clear[#]
create a breakpoint at line [#] list breakpoints and their indices execute until a breakpoint is encountered clear breakpoint of index [#]
Changing Variables / Interacting with Code
p !
run [args]
print value of the variable execute the expression
NOTE: this acts just like a python interpreter restart the debugger with sys.argv arguments [args]
q(uit)
exit the debugger
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- custom commands for minecraft
- vba commands list
- minecraft enchantment commands generator
- microsoft excel commands cheat sheet
- custom commands for minecraft 1.12
- excel commands cheat sheet
- all give commands in minecraft
- custom commands for minecraft 1 12
- cool command block commands 1 14 4
- minecraft custom commands 1 15 2
- custom commands for minecraft 1 15
- commands for command blocks 1 12