Skip to content

Commit e34179a

Browse files
committed
[Dexter] Cope better with empty source locations
When running a program, Dexter single steps if it's in one of the source files under test, or free-runs if it isn't. Handle the circumstance where the current source file simply isn't known.
1 parent fc98907 commit e34179a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

debuginfo-tests/dexter/dex/debugger/DebuggerBase.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ def start(self):
153153
def in_source_file(self, step_info):
154154
if not step_info.current_frame:
155155
return False
156+
if not step_info.current_location.path:
157+
return False
156158
if not os.path.exists(step_info.current_location.path):
157159
return False
158160
return any(os.path.samefile(step_info.current_location.path, f) \

0 commit comments

Comments
 (0)