class_docstr: Magics related to code execution, debugging, profiling, etc.
  
      
docstr: Activate the interactive debugger.
  
  This magic command support two ways of activating debugger.
  One is to activate debugger before executing code.  This way, you
  can set a break point, to step through the code from the point.
  You can use this mode by giving statements to execute and optionally
  a breakpoint.
  
  The other one is to activate debugger in post-mortem mode.  You can
  activate this mode simply running %debug without any argument.
  If an exception has just occurred, this lets you inspect its stack
  frames interactively.  Note that this will always work only on the last
  traceback that occurred, so you must call this quickly after an
  exception that you wish to inspect has fired, because if another one
  occurs, it clobbers the previous one.
  
  If you want IPython to automatically do this on every exception, see
  the %pdb magic for more details.
docstr_tok: ["Activate","the","interactive","debugger",".","This","magic","command","support","two","ways","of","activating","debugger",".","One","is","to","activate","debugger","before","executing","code",".","This","way",",","you","can","set","a","break","point",",","to","step","through","the","code","from","the","point",".","You","can","use","this","mode","by","giving","statements","to","execute","and","optionally","a","breakpoint",".","The","other","one","is","to","activate","debugger","in","post-mortem","mode",".","You","can","activate","this","mode","simply","running","%","debug","without","any","argument",".","If","an","exception","has","just","occurred",",","this","lets","you","inspect","its","stack","frames","interactively",".","Note","that","this","will","always","work","only","on","the","last","traceback","that","occurred",",","so","you","must","call","this","quickly","after","an","exception","that","you","wish","to","inspect","has","fired",",","because","if","another","one","occurs",",","it","clobbers","the","previous","one",".","If","you","want","IPython","to","automatically","do","this","on","every","exception",",","see","the","%","pdb","magic","for","more","details","."]
code: def debug(self, line="", cell=None):
      """Activate the interactive debugger.
  
      This magic command support two ways of activating debugger.
      One is to activate debugger before executing code.  This way, you
      can set a break point, to step through the code from the point.
      You can use this mode by giving statements to execute and optionally
      a breakpoint.
  
      The other one is to activate debugger in post-mortem mode.  You can
      activate this mode simply running %debug without any argument.
      If an exception has just occurred, this lets you inspect its stack
      frames interactively.  Note that this will always work only on the last
      traceback that occurred, so you must call this quickly after an
      exception that you wish to inspect has fired, because if another one
      occurs, it clobbers the previous one.
  
      If you want IPython to automatically do this on every exception, see
      the %pdb magic for more details.
      """
      args = magic_arguments.parse_argstring(self.debug, line)
  
      if not (args.breakpoint or args.statement or cell):
          self._debug_post_mortem()
      else:
          code = "\n".join(args.statement)
          if cell:
              code += "\n" + cell
          self._debug_exec(code, args.breakpoint)
  
imports: from __future__ import print_function
  from __future__ import absolute_import
  import ast
  import bdb
  import gc
  import itertools
  import os
  import sys
  import time
  import timeit
  from pdb import Restart
  from IPython.core import oinspect
  from IPython.core import magic_arguments
  from IPython.core import page
  from IPython.core.error import UsageError
  from IPython.core.macro import Macro
  from IPython.core.magic import Magics, magics_class, line_magic, cell_magic, line_cell_magic, on_off, needs_local_scope
  from IPython.testing.skipdoctest import skip_doctest
  from IPython.utils import py3compat
  from IPython.utils.py3compat import builtin_mod, iteritems, PY3
  from IPython.utils.contexts import preserve_keys
  from IPython.utils.capture import capture_output
  from IPython.utils.ipstruct import Struct
  from IPython.utils.module_paths import find_mod
  from IPython.utils.path import get_py_filename, shellglob
  from IPython.utils.timing import clock, clock2
  from warnings import warn
  from logging import error
label_desc: Use image node_id 6 for calling the ExecutionMagics obj's underlying member method code with example usage: obj.debug(line, cell) without return types