You are viewing an older version (9.5.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.5.0 / IPython / core / ultratb / VerboseTB / debugger

function

IPython.core.ultratb:VerboseTB.debugger

source: /IPython/core/ultratb.py :909

Signature

def   debugger ( self force : bool = False )  →  None

Summary

Call up the pdb debugger if desired, always clean up the tb reference.

Extended Summary

Keywords:

  • force(False): by default, this routine checks the instance call_pdb flag and does not actually invoke the debugger if the flag is false. The 'force' option forces the debugger to activate even if the flag is false.

If the call_pdb flag is set, the pdb interactive debugger is invoked. In all cases, the self.tb reference to the current traceback is deleted to prevent lingering references which hamper memory management.

Note that each call to pdb() does an 'import readline', so if your app requires a special setup for the readline completers, you'll have to fix that by hand after invoking the exception handler.

Aliases

  • IPython.core.ultratb.VerboseTB.debugger