test: _via_set_trace_frame
This commit is contained in:
parent
96a0bcd8e1
commit
92b3ee6aa3
|
@ -199,9 +199,10 @@ class Bdb:
|
|||
|
||||
def stop_here(self, frame):
|
||||
"Return True if frame is below the starting frame in the stack."
|
||||
if (self.stopframe is None
|
||||
and self.returnframes is None
|
||||
and self.stoplineno == 0): # TEST: via set_step
|
||||
if (
|
||||
self.stopframe is None
|
||||
and getattr(self, "_via_set_trace_frame", frame) == frame
|
||||
):
|
||||
return True
|
||||
if self.skip and \
|
||||
self.is_skipped_module(frame.f_globals.get('__name__')):
|
||||
|
@ -327,6 +328,7 @@ class Bdb:
|
|||
"""
|
||||
if frame is None:
|
||||
frame = sys._getframe().f_back
|
||||
self._via_set_trace_frame = frame
|
||||
self.reset()
|
||||
while frame:
|
||||
frame.f_trace = self.trace_dispatch
|
||||
|
|
Loading…
Reference in New Issue