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

Method user_exception

Lib/idlelib/debugger.py:50–56  ·  view source on GitHub ↗

Handle an the occurrence of an exception.

(self, frame, exc_info)

Source from the content-addressed store, hash-verified

48 pass
49
50 def user_exception(self, frame, exc_info):
51 """Handle an the occurrence of an exception."""
52 if _in_rpc_code(frame):
53 self.set_step()
54 return
55 message = _frame2message(frame)
56 self.gui.interaction(message, frame, exc_info)
57
58def _in_rpc_code(frame):
59 "Determine if debugger is within RPC code."

Callers 1

test_user_exceptionMethod · 0.45

Calls 4

_in_rpc_codeFunction · 0.85
_frame2messageFunction · 0.85
set_stepMethod · 0.45
interactionMethod · 0.45

Tested by 1

test_user_exceptionMethod · 0.36