On this page
  1. pdb.get_default_backend
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from pdb import get_default_backend
help(get_default_backend)

Linked from

Related notes