MCPcopy Index your code
hub / github.com/python/cpython / sigint_handler

Method sigint_handler

Lib/pdb.py:495–500  ·  view source on GitHub ↗
(self, signum, frame)

Source from the content-addressed store, hash-verified

493 self.start_trace()
494
495 def sigint_handler(self, signum, frame):
496 if self.allow_kbdint:
497 raise KeyboardInterrupt
498 self.message("\nProgram interrupted. (Use 'cont' to resume).")
499 self.set_step()
500 self.set_trace(frame)
501
502 def reset(self):
503 bdb.Bdb.reset(self)

Callers

nothing calls this directly

Calls 3

messageMethod · 0.95
set_traceMethod · 0.95
set_stepMethod · 0.45

Tested by

no test coverage detected