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","."]
code: def print_stack_trace(self, context=None):
      Colors = self.color_scheme_table.active_colors
      ColorsNormal = Colors.Normal
      if context is None:
          context = self.context
      try:
          context = int(context)
          if context <= 0:
              raise ValueError("Context must be a positive integer")
      except (TypeError, ValueError) as e:
          raise ValueError("Context must be a positive integer") from e
      try:
          skipped = 0
          for hidden, frame_lineno in zip(
              self.hidden_frames(self.stack), self.stack
          ):
              if hidden and self.skip_hidden:
                  skipped += 1
                  continue
              if skipped:
                  print(
                      f"{Colors.excName}    [... skipping {skipped} hidden frame(s)]{ColorsNormal}\n"
                  )
                  skipped = 0
              self.print_stack_entry(frame_lineno, context=context)
          if skipped:
              print(
                  f"{Colors.excName}    [... skipping {skipped} hidden frame(s)]{ColorsNormal}\n"
              )
      except KeyboardInterrupt:
          pass
  
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 11 for calling the Pdb obj's underlying member method code with example usage: obj.print_stack_trace(context) without return types