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","(",")","`"]
code: def getsourcelines(self, obj):
      lines, lineno = inspect.findsource(obj)
      if inspect.isframe(obj) and obj.f_globals is obj.f_locals:
          # must be a module frame: do not try to cut a block out of it
          return lines, 1
      elif inspect.ismodule(obj):
          return lines, 1
      return inspect.getblock(lines[lineno:]), lineno + 1
  
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 15 for calling the Pdb obj's underlying member method code with example usage: obj.getsourcelines(obj) and returns: inspect,  unknown, lines,  int, lines,  int