bundles / IPython latest / IPython / core / debugger / Pdb / __init__
function
IPython.core.debugger:Pdb.__init__
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 NonePassed to pdb.Pdb.
stdin: default NonePassed to pdb.Pdb.
stdout: default NonePassed to pdb.Pdb.
context: intNumber of lines of source code context to show when displaying stacktrace information.
mode: str, optionalHow the debugger was invoked, one of
'inline'(used by thebreakpoint()builtin),'cli'(used by the command line invocation) orNone(backwards compatible behaviour). This argument was added to stdlib'spdb.Pdbin Python 3.14; it is accepted on every supported Python version here but only forwarded to the underlyingpdb.Pdbwhen it is actually supported.**kwargsPassed to pdb.Pdb.
Notes
The possibilities are python version dependent, see the python docs for more info.
Aliases
IPython.core.debugger.Pdb.__init__