MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / set_step

Method set_step

tools/python-3.11.9-amd64/Lib/bdb.py:300–310  ·  view source on GitHub ↗

Stop after one line of code.

(self)

Source from the content-addressed store, hash-verified

298 self._set_stopinfo(frame, frame, lineno)
299
300 def set_step(self):
301 """Stop after one line of code."""
302 # Issue #13183: pdb skips frames after hitting a breakpoint and running
303 # step commands.
304 # Restore the trace function in the caller (that may not have been set
305 # for performance reasons) when returning from the current frame.
306 if self.frame_returning:
307 caller_frame = self.frame_returning.f_back
308 if caller_frame and not caller_frame.f_trace:
309 caller_frame.f_trace = self.trace_dispatch
310 self._set_stopinfo(None, None)
311
312 def set_next(self, frame):
313 """Stop on the next line in or below the given frame."""

Callers 3

set_traceMethod · 0.95
sigint_handlerMethod · 0.45
do_stepMethod · 0.45

Calls 1

_set_stopinfoMethod · 0.95

Tested by

no test coverage detected