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

Method set_return

Lib/bdb.py:600–605  ·  view source on GitHub ↗

Stop when returning from the given frame.

(self, frame)

Source from the content-addressed store, hash-verified

598 self._set_stopinfo(frame, None, cmdframe=frame, cmdlineno=frame.f_lineno)
599
600 def set_return(self, frame):
601 """Stop when returning from the given frame."""
602 if frame.f_code.co_flags & GENERATOR_AND_COROUTINE_FLAGS:
603 self._set_stopinfo(frame, frame, -1)
604 else:
605 self._set_stopinfo(frame.f_back, frame)
606
607 def set_trace(self, frame=None):
608 """Start debugging from frame.

Callers 1

do_returnMethod · 0.80

Calls 1

_set_stopinfoMethod · 0.95

Tested by

no test coverage detected