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

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

REPL Inspect

from pdb import runeval
help(runeval)

Linked from

Related notes