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

Method _set_stopinfo

Lib/bdb.py:545–563  ·  view source on GitHub ↗

Set the attributes for stopping. If stoplineno is greater than or equal to 0, then stop at line greater than or equal to the stopline. If stoplineno is -1, then don't stop at all.

(self, stopframe, returnframe, stoplineno=0, opcode=False,
                      cmdframe=None, cmdlineno=None)

Source from the content-addressed store, hash-verified

543 self.monitoring_tracer.update_local_events()
544
545 def _set_stopinfo(self, stopframe, returnframe, stoplineno=0, opcode=False,
546 cmdframe=None, cmdlineno=None):
547 """Set the attributes for stopping.
548
549 If stoplineno is greater than or equal to 0, then stop at line
550 greater than or equal to the stopline. If stoplineno is -1, then
551 don't stop at all.
552 """
553 self.stopframe = stopframe
554 self.returnframe = returnframe
555 self.quitting = False
556 # stoplineno >= 0 means: stop at line >= the stoplineno
557 # stoplineno -1 means: don't stop at all
558 self.stoplineno = stoplineno
559 # cmdframe/cmdlineno is the frame/line number when the user issued
560 # step/next commands.
561 self.cmdframe = cmdframe
562 self.cmdlineno = cmdlineno
563 self._set_trace_opcodes(opcode)
564
565 def _set_caller_tracefunc(self, current_frame):
566 # Issue #13183: pdb skips frames after hitting a breakpoint and running

Callers 8

resetMethod · 0.95
dispatch_returnMethod · 0.95
set_untilMethod · 0.95
set_stepMethod · 0.95
set_stepinstrMethod · 0.95
set_nextMethod · 0.95
set_returnMethod · 0.95
set_continueMethod · 0.95

Calls 1

_set_trace_opcodesMethod · 0.95

Tested by

no test coverage detected