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

Method _set_stopinfo

Lib/bdb.py:536–554  ·  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

534 self.monitoring_tracer.update_local_events()
535
536 def _set_stopinfo(self, stopframe, returnframe, stoplineno=0, opcode=False,
537 cmdframe=None, cmdlineno=None):
538 """Set the attributes for stopping.
539
540 If stoplineno is greater than or equal to 0, then stop at line
541 greater than or equal to the stopline. If stoplineno is -1, then
542 don't stop at all.
543 """
544 self.stopframe = stopframe
545 self.returnframe = returnframe
546 self.quitting = False
547 # stoplineno >= 0 means: stop at line >= the stoplineno
548 # stoplineno -1 means: don't stop at all
549 self.stoplineno = stoplineno
550 # cmdframe/cmdlineno is the frame/line number when the user issued
551 # step/next commands.
552 self.cmdframe = cmdframe
553 self.cmdlineno = cmdlineno
554 self._set_trace_opcodes(opcode)
555
556 def _set_caller_tracefunc(self, current_frame):
557 # 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