Xcode在自动继续断点处停止

Wil*_*sch 7 iphone debugging xcode breakpoints ios

当我在项目中设置breakopint并单击"评估所有操作后继续"复选框时,Xcode不会继续.不仅如此,执行经常出现挂起.无论我是否真的对断点进行任何操作,都是如此.

我的非自动连续断点工作正常.

我尝试了一个全新的项目,问题仍然存在.所以它必须与我的计算机或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;
}
Run Code Online (Sandbox Code Playgroud)

控制台日志:

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
Run Code Online (Sandbox Code Playgroud)

有趣的是,即使优化设置为none,也会触发两个printf语句.

dea*_*rne 1

根据您的描述,这听起来可能是 Xcode 中的一个错误 -在此处报告。

(抱歉我的回答没有多大帮助)