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()`
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","(",")","`"]
docstr: Print lines of code from the current stack frame
          
docstr_tok: ["Print","lines","of","code","from","the","current","stack","frame"]
code: def do_list(self, arg):
      """Print lines of code from the current stack frame"""
      self.lastcmd = "list"
      last = None
      if arg:
          try:
              x = eval(arg, {}, {})
              if type(x) == type(()):
                  first, last = x
                  first = int(first)
                  last = int(last)
                  if last < first:
                      # Assume it's a count
                      last = first + last
              else:
                  first = max(1, int(x) - 5)
          except:
              print("*** Error in argument:", repr(arg))
              return
      elif self.lineno is None:
          first = max(1, self.curframe.f_lineno - 5)
      else:
          first = self.lineno + 1
      if last is None:
          last = first + 10
      self.print_list_lines(
          self.curframe.f_code.co_filename, first, last
      )
  
      # vds: >>
      lineno = first
      filename = self.curframe.f_code.co_filename
      self.shell.hooks.synchronize_with_editor(filename, lineno, 0)
  
imports: from __future__ import print_function
  import bdb
  import functools
  import inspect
  import sys
  import warnings
  from IPython import get_ipython
  from IPython.utils import PyColorize, ulinecache
  from IPython.utils import coloransi, py3compat
  from IPython.core.excolors import exception_colors
  from IPython.testing.skipdoctest import skip_doctest
  from pdb import Pdb
label_desc: Use image node_id 14 for calling the Pdb obj's underlying member method code with example usage: obj.do_list(arg) without return types