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

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

问题描述

我刚刚开始在xcode中的Cocoa开发,做好hello世界的例子。我要到运行时调试,这是

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


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

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!

推荐答案

p>我知道这篇文章是一百岁,但是如果有人想知道如何在最新的Xcode版本(而不是Xcode 3)中解决这个问题,你会发现标签为的适当设置始终显示拆卸在Xcode 6及更高版本的 Debug> Debug Workflow 下。确保选项是

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中,该选项标记为在调试时显示拆卸 Debug> Debug Workflow 。确保调试时显示拆卸未被选中。

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 Debugger:为什么只显示我的汇编程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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