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

pdb.run

Prev: pdb.post_mortem | Up: pdb | Next: pdb.runcall
Rel: pdb.get_default_backend, pdb.help, pdb.Pdb, pdb.pm
Ref: docs.python.org — pdb.run
Tags: #public #python3 #stdlib #pdb


Import

import pdb
from pdb import run

Signature & Overview

pdb.run(statement, globals=None, locals=None)

Execute the statement (given as a string or a code object) under debugger control.

Usage

import pdb

# Executes a statement string under the interactive debugger
assert callable(pdb.run)

Gotchas

REPL Inspect

from pdb import run
help(run)

Linked from

Related notes