From 9bb7ab0406e57e3239822249f10ca7f13603c595 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 16 May 2009 20:12:22 -0400 Subject: [PATCH] Add a preference to disable automatic step-in upon connection * English.lproj/Preferences.xib: Add checkbox to the general prefs * Source/AppDelegate.m: Add NSUserDefaults default value * Source/DebuggerController.m: (startDebugger): Check pref before stepping --- CHANGES | 2 + English.lproj/Preferences.xib | 145 ++++++++++++++++++++++++++++------ Source/AppDelegate.m | 1 + Source/DebuggerController.m | 3 +- 4 files changed, 127 insertions(+), 24 deletions(-) diff --git a/CHANGES b/CHANGES index 6aca4c4..b403731 100644 --- a/CHANGES +++ b/CHANGES @@ -13,6 +13,8 @@ script a subsequent time - Fix: #163 Breakpoints with a space in the pathname would not be set - Fix: Code would not display if the pathname to the file contained a space - Fix: After using the run command, the stack will now be properly updated +- New: A preference has been added to disable automatic stepping into the +first line of execution 1.2.1 diff --git a/English.lproj/Preferences.xib b/English.lproj/Preferences.xib index bda237b..05a0817 100644 --- a/English.lproj/Preferences.xib +++ b/English.lproj/Preferences.xib @@ -1,13 +1,14 @@ - + 1050 - 9G55 - 672 - 949.43 + 9J61 + 677 + 949.46 353.00 YES + @@ -15,6 +16,15 @@ com.apple.InterfaceBuilderKit com.apple.InterfaceBuilder.CocoaPlugin + + YES + + YES + + + YES + + YES @@ -192,9 +202,7 @@ YES - Port - IDEKey - PathReplacements + BreakOnFirstLine YES @@ -206,9 +214,8 @@ 268 - {{77, 80}, {86, 17}} + {{77, 124}, {86, 17}} - YES 68288064 @@ -243,9 +250,8 @@ 268 - {{168, 78}, {60, 22}} + {{168, 122}, {60, 22}} - YES -1804468671 @@ -274,9 +280,8 @@ 268 - {{55, 48}, {108, 17}} + {{55, 92}, {108, 17}} - YES 68288064 @@ -291,9 +296,8 @@ 268 - {{168, 46}, {210, 22}} + {{168, 90}, {210, 22}} - YES -1804468671 @@ -309,9 +313,8 @@ 268 - {{17, 10}, {387, 28}} + {{17, 54}, {387, 28}} - YES 67239424 @@ -327,10 +330,52 @@ + + + 268 + {{166, 18}, {216, 18}} + + YES + + -2080244224 + 0 + Break on first line of execution + + + 1211912703 + 130 + + NSImage + NSSwitch + + + NSSwitch + + + + 200 + 25 + + + + + 268 + {{17, 20}, {146, 17}} + + YES + + 68288064 + 71304192 + Debugger Behavior: + + + + + + - {420, 120} + {421, 164} - NSView @@ -702,7 +747,7 @@ values.PathReplacements NSHandlesContentAsCompoundValue - + 2 @@ -765,6 +810,22 @@ 90 + + + value: values.BreakOnFirstLine + + + + + + value: values.BreakOnFirstLine + value + values.BreakOnFirstLine + 2 + + + 95 + @@ -850,6 +911,8 @@ + + GeneralPreferences @@ -1045,6 +1108,34 @@ Paths Controller + + 91 + + + YES + + + + + + 92 + + + + + 93 + + + YES + + + + + + 94 + + + @@ -1098,6 +1189,10 @@ 67.IBPluginDependency 78.CustomClassName 78.IBPluginDependency + 91.IBPluginDependency + 92.IBPluginDependency + 93.IBPluginDependency + 94.IBPluginDependency YES @@ -1109,7 +1204,7 @@ {{647, 290}, {420, 120}} - + {196, 240} {{202, 428}, {480, 270}} com.apple.InterfaceBuilder.CocoaPlugin @@ -1117,7 +1212,7 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - {{369, 249}, {420, 120}} + {{369, 205}, {421, 164}} com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin @@ -1148,6 +1243,10 @@ com.apple.InterfaceBuilder.CocoaPlugin PreferencesPathsArrayController com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin @@ -1170,7 +1269,7 @@ - 90 + 95 diff --git a/Source/AppDelegate.m b/Source/AppDelegate.m index b984a8c..f79b18c 100644 --- a/Source/AppDelegate.m +++ b/Source/AppDelegate.m @@ -45,6 +45,7 @@ [NSNumber numberWithBool:YES], @"BreakpointsWindowVisible", [NSNumber numberWithBool:YES], @"InspectorWindowVisible", [NSMutableArray array], @"PathReplacements", + [NSNumber numberWithBool:YES], @"BreakOnFirstLine", nil ]; diff --git a/Source/DebuggerController.m b/Source/DebuggerController.m index d7acbc2..fa64530 100644 --- a/Source/DebuggerController.m +++ b/Source/DebuggerController.m @@ -141,7 +141,8 @@ */ - (void)startDebugger { - [self stepIn:self]; + if ([[NSUserDefaults standardUserDefaults] boolForKey:@"BreakOnFirstLine"]) + [self stepIn:self]; } /** -- 2.22.5