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

Method stop_here

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

429 return False
430
431 def stop_here(self, frame):
432 "Return True if frame is below the starting frame in the stack."
433 # (CT) stopframe may now also be None, see dispatch_call.
434 # (CT) the former test for None is therefore removed from here.
435 if self.skip and \
436 self.is_skipped_module(frame.f_globals.get('__name__')):
437 return False
438 if frame is self.stopframe:
439 if self.stoplineno == -1:
440 return False
441 return frame.f_lineno >= self.stoplineno
442 if not self.stopframe:
443 return True
444 return False
445
446 def break_here(self, frame):
447 """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