From 5a52788a012efb0e6f66c12010599aabc35be6a8 Mon Sep 17 00:00:00 2001 From: John Cook Date: Sat, 23 Jan 2016 18:23:11 +1100 Subject: [PATCH] In -[DebuggerController debuggerConnected] clear out the source viewer. This prevents the cached file from being reused across runs. Fixes bug #232. --- Source/DebuggerController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/DebuggerController.m b/Source/DebuggerController.m index f05fd38..3037ae4 100644 --- a/Source/DebuggerController.m +++ b/Source/DebuggerController.m @@ -186,6 +186,8 @@ return; if ([[NSUserDefaults standardUserDefaults] boolForKey:@"BreakOnFirstLine"]) [self stepIn:self]; + // Do not cache the file between debugger executions. + sourceViewer.file = nil; } /** -- 2.43.5