当我在项目中设置断点并勾选“评估所有操作后继续”复选框时,Xcode不会继续执行。此外,执行经常会出现挂起的情况。无论是否实际上在断点上有任何操作,都是如此。我的非自动继续断点可以正常工作。
我尝试了一个全新的项目,问题仍然存在。因此,它必须与我的计算机或Xcode中的某个设置相关。我正在使用Snow Leopard和Xcode 4.0.2。
可能出了什么问题?
编辑:代码和控制台日志。
代码:
有趣的是,尽管优化被设置为"none",两个printf语句均被执行。
我尝试了一个全新的项目,问题仍然存在。因此,它必须与我的计算机或Xcode中的某个设置相关。我正在使用Snow Leopard和Xcode 4.0.2。
可能出了什么问题?
编辑:代码和控制台日志。
代码:
- (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;
}
控制台日志:
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
有趣的是,尽管优化被设置为"none",两个printf语句均被执行。