MCPcopy Index your code
hub / github.com/RustPython/RustPython / interaction

Method interaction

Lib/pdb.py:350–366  ·  view source on GitHub ↗
(self, frame, traceback)

Source from the content-addressed store, hash-verified

348 (expr, newvalue, oldvalue))
349
350 def interaction(self, frame, traceback):
351 # Restore the previous signal handler at the Pdb prompt.
352 if Pdb._previous_sigint_handler:
353 try:
354 signal.signal(signal.SIGINT, Pdb._previous_sigint_handler)
355 except ValueError: # ValueError: signal only works in main thread
356 pass
357 else:
358 Pdb._previous_sigint_handler = None
359 if self.setup(frame, traceback):
360 # no interaction desired at this time (happens if .pdbrc contains
361 # a command like "continue")
362 self.forget()
363 return
364 self.print_stack_entry(self.stack[self.curindex])
365 self._cmdloop()
366 self.forget()
367
368 def displayhook(self, obj):
369 """Custom displayhook for the exec in default(), which prevents

Callers 7

debug_scriptFunction · 0.95
user_callMethod · 0.95
user_lineMethod · 0.95
user_returnMethod · 0.95
user_exceptionMethod · 0.95
post_mortemFunction · 0.95
mainFunction · 0.95

Calls 4

setupMethod · 0.95
forgetMethod · 0.95
print_stack_entryMethod · 0.95
_cmdloopMethod · 0.95

Tested by 1

debug_scriptFunction · 0.76