class_docstr: Modified Pdb class, does not load readline.
  
  for a standalone version that uses prompt_toolkit, see
  `IPython.terminal.debugger.TerminalPdb` and
  `IPython.terminal.debugger.set_trace()`
  
  
  This debugger can hide and skip frames that are tagged according to some predicates.
  See the `skip_predicates` commands.
class_docstr_tok: ["Modified","Pdb","class",",","does","not","load","readline",".","for","a","standalone","version","that","uses","prompt_toolkit",",","see","`","IPython.terminal.debugger.TerminalPdb","`","and","`","IPython.terminal.debugger.set_trace","(",")","`","This","debugger","can","hide","and","skip","frames","that","are","tagged","according","to","some","predicates",".","See","the","`","skip_predicates","`","commands","."]
docstr: debug code
  Enter a recursive debugger that steps through the code
  argument (which is an arbitrary expression or statement to be
  executed in the current environment).
docstr_tok: ["debug","code","Enter","a","recursive","debugger","that","steps","through","the","code","argument","(","which","is","an","arbitrary","expression","or","statement","to","be","executed","in","the","current","environment",")","."]
code: def do_debug(self, arg):
      """debug code
      Enter a recursive debugger that steps through the code
      argument (which is an arbitrary expression or statement to be
      executed in the current environment).
      """
      trace_function = sys.gettrace()
      sys.settrace(None)
      globals = self.curframe.f_globals
      locals = self.curframe_locals
      p = self.__class__(
          completekey=self.completekey,
          stdin=self.stdin,
          stdout=self.stdout,
      )
      p.use_rawinput = self.use_rawinput
      p.prompt = "(%s) " % self.prompt.strip()
      self.message("ENTERING RECURSIVE DEBUGGER")
      sys.call_tracing(p.run, (arg, globals, locals))
      self.message("LEAVING RECURSIVE DEBUGGER")
      sys.settrace(trace_function)
      self.lastcmd = p.lastcmd
  
imports: import inspect
  import linecache
  import sys
  import re
  import os
  from IPython import get_ipython
  from contextlib import contextmanager
  from IPython.utils import PyColorize
  from IPython.utils import coloransi, py3compat
  from IPython.core.excolors import exception_colors
  from pdb import Pdb
label_desc: Use image node_id 22 for calling the Pdb obj's underlying member method code with example usage: obj.do_debug(arg) without return types