XCode调试器:为什么它只显示我的汇编器? [英] XCode Debugger: Why is it only showing me assembler?

查看:124
本文介绍了XCode调试器:为什么它只显示我的汇编器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始在Cocoa开发xcode,做hello世界的例子。我要参阅 runtime debugging ,这是

I'm just starting out with Cocoa development in xcode, doing the hello world example. I'm up to step 6 of the section "runtime debugging", which is


调试器工具栏中的跳过按钮,开始逐步执​​行代码。随着每行代码的执行,你可以检查程序的状态。变量的值有时用红色表示,表示该值在最后一步中已修改。
请注意,调试器在执行指定的行之前暂停。每次暂停后,您可以添加其他断点或选择调试>重新启动以终止应用程序并启动新的调试会话。

Using the Step Over button in the debugger toolbar, begin stepping through the code. As each line of code executes, you can examine the program’s state. The value of a variable is sometimes drawn in red to indicate that the value was modified in the last step. Notice that the debugger pauses before executing the indicated line. After each pause, you can add additional breakpoints or choose Debug > Restart to terminate the application and start a new debugging session.

我一直把我的头发在过去的一个小时是事实,这个调试器将只显示我的程序集代码。我可以手动选择我的源代码文件,但一旦我点击跳过我回到汇编视图。我不能为我的生活弄清楚如何关闭汇编器,并让它显示我的源代码!

now what I've been pulling my hair out for over the last hour is the fact that this debugger will only show me assembly code. I can manually select my source code file, but as soon as I click "Step over" I'm right back in assembler view. I can't for the life of me figure out how to turn the assembler off, and make it show me my source code!

推荐答案

我知道这篇文章是一百年,但是如果任何人想知道如何解决这个问题在最近的Xcode版本(相对于Xcode 3),你会发现适当的设置标签总是显示反汇编在Xcode 6及更高版本中的调试>调试工作流

I know this article is a hundred years old, but in case anyone is wondering how to address this issue in more recent Xcode versions (as opposed to Xcode 3), you'll find the appropriate setting labeled Always Show Disassembly under Debug>Debug Workflow in Xcode 6 and up. Ensure the option is NOT checked.

在Xcode 5中,该选项被标记为在调试时显示反汇编 strong>调试>调试工作流。确保未调试时显示卸载。

In Xcode 5, the option was labeled Show Disassembly When Debugging under Debug>Debug Workflow. Ensure that "Show Disassembly When Debugging" is unchecked.

回到Xcode 4中,产品>调试工作流程

Back in Xcode 4, the Show Disassembly When Debugging setting was found under Product>Debug Workflow. Again, ensure that the option remains unchecked.

这也让我很疯狂。

注意:以上信息对Xcode 8+仍然有效。我已经应用更新到这个答案,因为新版本的Xcode已经发布。幸运的是,该选项从Xcode 6(到目前为止)保持不变。

这篇关于XCode调试器:为什么它只显示我的汇编器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆