pdb.get_default_backend
Up: pdb | Next: pdb.help
Rel: pdb.help, pdb.Pdb, pdb.pm, pdb.post_mortem
Ref: docs.python.org — pdb.get_default_backend
Tags: #public #python3 #stdlib #pdb
Import
import pdb
from pdb import get_default_backend
Signature & Overview
pdb.get_default_backend()
Get the default backend to use for Pdb instances.
Usage
import pdb
# Python 3.14+: returns active pdb tracing backend ("settrace" or "monitoring")
if hasattr(pdb, "get_default_backend"):
assert pdb.get_default_backend() in ("settrace", "monitoring")
Gotchas
- Requires Python 3.14+:
monitoring(PEP 669) has dramatically lower overhead thansettrace.
REPL Inspect
from pdb import get_default_backend
help(get_default_backend)
Linked from
- tuts/python3/stdlib_module/pdb
- tuts/python3/stdlib_module/pdb/help
- tuts/python3/stdlib_module/pdb/Pdb
- tuts/python3/stdlib_module/pdb/pm
- tuts/python3/stdlib_module/pdb/post_mortem
- tuts/python3/stdlib_module/pdb/run
- tuts/python3/stdlib_module/pdb/runcall
- tuts/python3/stdlib_module/pdb/runctx
- tuts/python3/stdlib_module/pdb/runeval
- tuts/python3/stdlib_module/pdb/set_default_backend
- tuts/python3/stdlib_module/pdb/set_trace
Related notes
- tuts/python3/stdlib_module/pdb/help Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/Pdb Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/pm Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/post_mortem Linked here; links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/run links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runcall links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runctx links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/runeval links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/set_default_backend links to this page; shared tags: #pdb, #stdlib
- tuts/python3/stdlib_module/pdb/set_trace links to this page; shared tags: #pdb, #stdlib