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

Method user_line

Lib/idlelib/debugger.py:36–48  ·  view source on GitHub ↗

Handle a user stopping or breaking at a line. Convert frame to a string and send it to gui.

(self, frame)

Source from the content-addressed store, hash-verified

34 super().__init__()
35
36 def user_line(self, frame):
37 """Handle a user stopping or breaking at a line.
38
39 Convert frame to a string and send it to gui.
40 """
41 if _in_rpc_code(frame):
42 self.set_step()
43 return
44 message = _frame2message(frame)
45 try:
46 self.gui.interaction(message, frame)
47 except TclError: # When closing debugger window with [x] in 3.x
48 pass
49
50 def user_exception(self, frame, exc_info):
51 """Handle an the occurrence of an exception."""

Callers 1

test_user_lineMethod · 0.45

Calls 4

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

Tested by 1

test_user_lineMethod · 0.36