When I set a breakopint in my project, and click the "continue after evaluating all actions" checkbox, Xcode does not continue. Not only that, execution frequently appears to hang. This is true regardless of whether or not I actually have any actions on the breakpoint.
My non-autocontinue breakpoints work fine.
I tried a brand new project and the problem still occurred. So it must be related to a setting in either my computer or Xcode. I am using Snow Leopard and Xcode 4.0.2.
What could be the matter?
EDIT: code and console log.
code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.
[self.window makeKeyAndVisible];
int x = 5;
printf("%d", x); // breakpoint here with autocontinue checked and no action
x+=2;
printf("%d", x);
return YES;
}
console log:
This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all
Attaching to process 87901.
Pending breakpoint 1 - ""AutocontinueTestAppDelegate.m":21" resolved
Current language: auto; currently objective-c
57
It is interesting that even though the optimization was set to none, both printf statements fired.