[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. GitOrigin-RevId: e34179aad165fdab060d2da52703f9353d490911
diff --git a/dexter/dex/debugger/DebuggerBase.py b/dexter/dex/debugger/DebuggerBase.py index 8013ceb..57fcad0 100644 --- a/dexter/dex/debugger/DebuggerBase.py +++ b/dexter/dex/debugger/DebuggerBase.py
@@ -153,6 +153,8 @@ def in_source_file(self, step_info): if not step_info.current_frame: return False + if not step_info.current_location.path: + return False if not os.path.exists(step_info.current_location.path): return False return any(os.path.samefile(step_info.current_location.path, f) \