On this page
pdb.runctx
Prev: pdb.runcall | Up: pdb | Next: pdb.runeval
Rel: pdb.get_default_backend, pdb.help, pdb.Pdb, pdb.pm
Ref: docs.python.org — pdb.runctx
Tags: #public #python3 #stdlib #pdb
Import
import pdb
from pdb import runctx
Signature & Overview
pdb.runctx(statement, globals, locals)
pdb.runctx() function.
Usage
import pdb
# Like pdb.run(), with explicit globals and locals dicts
assert callable(pdb.runctx)
Gotchas
- Interactive: Runs statement strings under
Pdbwith custom namespaces.
REPL Inspect
from pdb import runctx
help(runctx)
Linked from
Related notes
- tuts/python3/stdlib_module/pdb/runcall Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runeval 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/post_mortem shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/run shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/set_default_backend shared tags: #pdb, #stdlib