On this page
pdb.runcall
Prev: pdb.run | Up: pdb | Next: pdb.runctx
Rel: pdb.get_default_backend, pdb.help, pdb.Pdb, pdb.pm
Ref: docs.python.org — pdb.runcall
Tags: #public #python3 #stdlib #pdb
Import
import pdb
from pdb import runcall
Signature & Overview
pdb.runcall(*args, **kwds)
Call the function (a function or method object, not a string) with the given arguments.
Usage
import pdb
# Calls fn(*args, **kwargs) under the interactive debugger
assert callable(pdb.runcall)
Gotchas
- Handy in a REPL:
pdb.runcall(my_func, arg1, arg2)steps straight intomy_func.
REPL Inspect
from pdb import runcall
help(runcall)
Linked from
Related notes
- tuts/python3/stdlib_module/pdb/run Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runctx 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/runeval shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/set_default_backend shared tags: #pdb, #stdlib