On this page
pdb.runeval
Prev: pdb.runctx | Up: pdb | Next: pdb.set_default_backend
Rel: pdb.get_default_backend, pdb.help, pdb.Pdb, pdb.pm
Ref: docs.python.org — pdb.runeval
Tags: #public #python3 #stdlib #pdb
Import
import pdb
from pdb import runeval
Signature & Overview
pdb.runeval(expression, globals=None, locals=None)
Evaluate the expression (given as a string or a code object) under debugger control.
Usage
import pdb
# Evaluates an expression string under the interactive debugger and returns its value
assert callable(pdb.runeval)
Gotchas
- Interactive: Expression counterpart to
pdb.run().
REPL Inspect
from pdb import runeval
help(runeval)
Linked from
Related notes
- tuts/python3/stdlib_module/pdb/runctx Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/set_default_backend 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/runcall shared tags: #pdb, #stdlib