Xcode停止在自动

当我在我的项目中设置了breakopint,然后单击“评估所有操作后继续”复选框时,Xcode不会继续。 不仅如此,执行经常似乎挂起。 无论我是否在断点上有任何操作,情况都是如此。

我的非自动断点断点工作正常。

我尝试了一个全新的项目,问题仍然存在。 所以它必须与我的电脑或Xcode中的设置相关。 我使用雪豹和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语句也被触发。


如果您正在设备上运行您的应用程序,我刚刚为您解决了这个问题:目前,自动继续断点只能在模拟器上运行,而不能在设备上运行。

来源:一些苹果工程师。


从你所描述的,这听起来像它可能是Xcode中的错误 - 在这里报告。

(对不起,我的回答没有更多帮助)


你可以粘贴你的控制台日志。 检查你的'条件'和'行动'是否有效,没有错误。 我只用resetAllAppData == NO的操作测试了这个,但是断点没有停止执行,因为'Action'需要' resetAllAppData == false '。

这是另一个测试的控制台日志:

Attaching to process 23361.
warning: Error parsing breakpoint condition expression
Pending breakpoint 1 - ""iPhoneAppDelegate.m":50" resolved

我得到这个错误是因为我将断点的“Action”设置为“Debugger Command” po resetAllAppData ,因为resetAllAppData不是对象typedef signed char BOOL; 它不能执行该动作,并且随后不会停在断点处。

链接地址: http://www.djcxy.com/p/54665.html

上一篇: Xcode is stopping at auto

下一篇: iOS custom idle timer