PyDocs

Nav

Debugging and profiling

Pdb

pdb

class (source)
  • Pdb(completekey='tab', stdin=None, stdout=None, skip=None, nosigint=False, readrc=True, mode=None, backend=None, colorize=False)
Pdb is the debugger class.
Changed in 3.1, 3.2, 3.6, 3.14
  • 3.1: Added the skip parameter.
  • 3.2: Added the nosigint parameter. Previously, a SIGINT handler was never set by Pdb.
  • 3.6: The readrc argument.
  • 3.14: Inline breakpoints like breakpoint() or pdb.set_trace() will always stop the program at calling frame, ignoring the skip pattern (if any).
  • 3.14: Added the mode argument.
  • 3.14: Added the backend argument.
  • 3.14: Added the colorize argument.
Members of Pdb

r

run
Debug a statement executed via the exec() function.
runcall
Debug a single function call.
runeval
Debug an expression executed via the eval() function.

s

set_trace
Start debugging from frame.
0 Examples
No examples for pdb/Pdb.
See Also
No see-alsos for pdb/Pdb
0 Notes
No notes for Pdb