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

Method stop_here

Lib/bdb.py:440–453  ·  view source on GitHub ↗

Return True if frame is below the starting frame in the stack.

(self, frame)

Source from the content-addressed store, hash-verified

438 return False
439
440 def stop_here(self, frame):
441 "Return True if frame is below the starting frame in the stack."
442 # (CT) stopframe may now also be None, see dispatch_call.
443 # (CT) the former test for None is therefore removed from here.
444 if self.skip and \
445 self.is_skipped_module(frame.f_globals.get('__name__')):
446 return False
447 if frame is self.stopframe:
448 if self.stoplineno == -1:
449 return False
450 return frame.f_lineno >= self.stoplineno
451 if not self.stopframe:
452 return True
453 return False
454
455 def break_here(self, frame):
456 """Return True if there is an effective breakpoint for this line.

Callers 6

dispatch_lineMethod · 0.95
dispatch_callMethod · 0.95
dispatch_returnMethod · 0.95
dispatch_exceptionMethod · 0.95
user_callMethod · 0.80
user_callMethod · 0.80

Calls 2

is_skipped_moduleMethod · 0.95
getMethod · 0.45

Tested by 1

user_callMethod · 0.64