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

Method set_return

Lib/bdb.py:591–596  ·  view source on GitHub ↗

Stop when returning from the given frame.

(self, frame)

Source from the content-addressed store, hash-verified

589 self._set_stopinfo(frame, None, cmdframe=frame, cmdlineno=frame.f_lineno)
590
591 def set_return(self, frame):
592 """Stop when returning from the given frame."""
593 if frame.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS:
594 self._set_stopinfo(frame, frame, -1)
595 else:
596 self._set_stopinfo(frame.f_back, frame)
597
598 def set_trace(self, frame=None):
599 """Start debugging from frame.

Callers 1

do_returnMethod · 0.45

Calls 1

_set_stopinfoMethod · 0.95

Tested by

no test coverage detected