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

Method user_line

Lib/pdb.py:566–580  ·  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

564 self.interaction(frame, None)
565
566 def user_line(self, frame):
567 """This function is called when we stop or break at this line."""
568 if self._wait_for_mainpyfile:
569 if (self.mainpyfile != self.canonic(frame.f_code.co_filename)):
570 return
571 self._wait_for_mainpyfile = False
572 if self.trace_opcodes:
573 # GH-127321
574 # We want to avoid stopping at an opcode that does not have
575 # an associated line number because pdb does not like it
576 if frame.f_lineno is None:
577 self.set_stepinstr()
578 return
579 self.bp_commands(frame)
580 self.interaction(frame, None)
581
582 user_opcode = user_line
583

Callers

nothing calls this directly

Calls 4

bp_commandsMethod · 0.95
interactionMethod · 0.95
canonicMethod · 0.80
set_stepinstrMethod · 0.80

Tested by

no test coverage detected