This is a development version (latest) and may be unstable.Go to latest (9.17.0)
{ } Raw JSON

bundles / IPython latest / IPython / core / debugger / Pdb / __init__

function

IPython.core.debugger:Pdb.__init__

source: /dev/ipython/IPython/core/debugger.py:239

Signature

def __init__(self, completekey = None, stdin = None, stdout = None, context: int | None | str = 5, *, mode: str | None = None, **kwargs)

Summary

Create a new IPython debugger.

Parameters

completekey : default None

Passed to pdb.Pdb.

stdin : default None

Passed to pdb.Pdb.

stdout : default None

Passed to pdb.Pdb.

context : int

Number of lines of source code context to show when displaying stacktrace information.

mode : str, optional

How the debugger was invoked, one of 'inline' (used by the breakpoint() builtin), 'cli' (used by the command line invocation) or None (backwards compatible behaviour). This argument was added to stdlib's pdb.Pdb in Python 3.14; it is accepted on every supported Python version here but only forwarded to the underlying pdb.Pdb when it is actually supported.

**kwargs

Passed to pdb.Pdb.

Notes

The possibilities are python version dependent, see the python docs for more info.

Aliases

  • IPython.core.debugger.Pdb.__init__