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

Method user_line

Lib/pdb.py:262–270  ·  view source on GitHub ↗

This function is called when we stop or break at this line.

(self, frame)

Source from the content-addressed store, hash-verified

260 self.interaction(frame, None)
261
262 def user_line(self, frame):
263 """This function is called when we stop or break at this line."""
264 if self._wait_for_mainpyfile:
265 if (self.mainpyfile != self.canonic(frame.f_code.co_filename)
266 or frame.f_lineno <= 0):
267 return
268 self._wait_for_mainpyfile = False
269 if self.bp_commands(frame):
270 self.interaction(frame, None)
271
272 def bp_commands(self, frame):
273 """Call every command that was set for the current active breakpoint

Callers

nothing calls this directly

Calls 3

bp_commandsMethod · 0.95
interactionMethod · 0.95
canonicMethod · 0.80

Tested by

no test coverage detected