MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / do_stop_on_unhandled_exception

Method do_stop_on_unhandled_exception

pydevd.py:2375–2389  ·  view source on GitHub ↗
(self, thread, frame, frames_byid, arg)

Source from the content-addressed store, hash-verified

2373 return keep_suspended
2374
2375 def do_stop_on_unhandled_exception(self, thread, frame, frames_byid, arg):
2376 pydev_log.debug("We are stopping in unhandled exception.")
2377 try:
2378 add_exception_to_frame(frame, arg)
2379 self.send_caught_exception_stack(thread, arg, id(frame))
2380 try:
2381 self.set_suspend(thread, CMD_ADD_EXCEPTION_BREAK)
2382 self.do_wait_suspend(thread, frame, "exception", arg, EXCEPTION_TYPE_UNHANDLED)
2383 except:
2384 self.send_caught_exception_stack_proceeded(thread)
2385 except:
2386 pydev_log.exception("We've got an error while stopping in unhandled exception: %s.", arg[0])
2387 finally:
2388 remove_exception_from_frame(frame)
2389 frame = None
2390
2391 def set_trace_for_frame_and_parents(self, thread_ident: Optional[int], frame, **kwargs):
2392 disable = kwargs.pop("disable", False)

Callers 1

Calls 7

set_suspendMethod · 0.95
do_wait_suspendMethod · 0.95
add_exception_to_frameFunction · 0.90
exceptionMethod · 0.80

Tested by

no test coverage detected