Pdb Commands - Stanford University
[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 download
- introduction to python harvard university
- python introduction for absolute beginners
- python 3 cheat sheet limsi
- pdb commands stanford university
- python a simple tutorial bryn mawr
- python guide documentation read the docs
- python chapter 1 introduction to programming in
- introduction to python
- learning the pythonic way
Related searches
- stanford university philosophy department
- stanford university plato
- stanford university encyclopedia of philosophy
- stanford university philosophy encyclopedia
- stanford university philosophy
- stanford university ein number
- stanford university master computer science
- stanford university graduate programs
- stanford university computer science ms
- stanford university phd programs
- stanford university phd in education
- stanford university online doctoral programs