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: "
  Accessing f_local of current frame reset the namespace, so we want to avoid
  that or the following can happen
  
  ipdb> foo
  "old"
  ipdb> foo = "new"
  ipdb> foo
  "new"
  ipdb> where
  ipdb> foo
  "old"
  
  So if frame is self.current_frame we instead return self.curframe_locals
docstr_tok: ["``","Accessing","f_local","of","current","frame","reset","the","namespace",",","so","we","want","to","avoid","that","or","the","following","can","happen","ipdb",">","foo","''","old","''","ipdb",">","foo","=","``","new","''","ipdb",">","foo","''","new","''","ipdb",">","where","ipdb",">","foo","''","old","''","So","if","frame","is","self.current_frame","we","instead","return","self.curframe_locals"]
code: def _get_frame_locals(self, frame):
      """ "
      Accessing f_local of current frame reset the namespace, so we want to avoid
      that or the following can happen
  
      ipdb> foo
      "old"
      ipdb> foo = "new"
      ipdb> foo
      "new"
      ipdb> where
      ipdb> foo
      "old"
  
      So if frame is self.current_frame we instead return self.curframe_locals
  
      """
      if frame is self.curframe:
          return self.curframe_locals
      else:
          return frame.f_locals
  
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 13 for calling the Pdb obj's underlying member method code with example usage: obj._get_frame_locals(frame) and returns: self, frame