On this page
pdb.run
Prev: pdb.post_mortem | Up: pdb | Next: pdb.runcall
Rel: pdb.get_default_backend, pdb.help, pdb.Pdb, pdb.pm
Ref: docs.python.org — pdb.run
Tags: #public #python3 #stdlib #pdb
Import
import pdb
from pdb import run
Signature & Overview
pdb.run(statement, globals=None, locals=None)
Execute the statement (given as a string or a code object) under debugger control.
Usage
import pdb
# Executes a statement string under the interactive debugger
assert callable(pdb.run)
Gotchas
- Interactive: From the CLI,
python3 -m pdb script.pyis usually easier.
REPL Inspect
from pdb import run
help(run)
Linked from
Related notes
- tuts/python3/stdlib_module/pdb/post_mortem Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runcall Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/get_default_backend Linked here; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/help Linked here; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/Pdb Linked here; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/pm Linked here; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/pdb/runctx shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runeval shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/set_default_backend shared tags: #pdb, #stdlib