parameters: (sig, frame)
docstring: Interrupt running process, and provide a python prompt for
      interactive debugging.
docstring_summary: Interrupt running process, and provide a python prompt for
      interactive debugging.
docstring_tokens: Interrupt running process and provide a python prompt for interactive debugging .
function: def debug(sig, frame):
      """Interrupt running process, and provide a python prompt for
      interactive debugging."""
      d={'_frame':frame}         # Allow access to frame object.
      d.update(frame.f_globals)  # Unless shadowed by global
      d.update(frame.f_locals)
  
      i = code.InteractiveConsole(d)
      message  = "Signal received: entering python shell.\nTraceback:\n"
      message += ''.join(traceback.format_stack(frame))
      i.interact(message)
function_tokens: def debug ( sig , frame ) : d = { '_frame' : frame } # Allow access to frame object. d . update ( frame . f_globals ) # Unless shadowed by global d . update ( frame . f_locals ) i = code . InteractiveConsole ( d ) message = "Signal received: entering python shell.\nTraceback:\n" message += '' . join ( traceback . format_stack ( frame ) ) i . interact ( message )