为什么设置断点时我的 xcode 会跳转到汇编视图?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12048625/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 01:17:05  来源:igfitidea点击:

Why is my xcode jump to assembly view when break point set?

objective-cxcodedebuggingios5breakpoints

提问by mineschan

When I try to debug with breakpoint, it jump to assembly view like this no matter which line of code. I want the highlight of current source line back!!

当我尝试使用断点进行调试时,无论哪一行代码,它都会像这样跳转到汇编视图。我要返回当前源代码行的亮点!!

How can I config it??

我该如何配置它??

enter image description here

在此处输入图片说明

回答by Daniel Vogelnest

This is a useful feature sometimes, but is easy to turn off:

有时这是一个有用的功能,但很容易关闭:

Debug > Debug Workflow > Always Show Disassembly

Debug > Debug Workflow > Always Show Disassembly

In older versions of Xcode (<6.1):

在旧版本的 Xcode (<6.1) 中:

Product > Debug Workflow > Show Disassembly When Debugging

Product > Debug Workflow > Show Disassembly When Debugging

回答by humphriesj

I'm having the same issue in Xcode 6.1 and solved it by doing the following:

我在 Xcode 6.1 中遇到了同样的问题,并通过执行以下操作解决了它:

Debug -> Debug Workflow -> UNCHECK Always Show Disassembly

调试 -> 调试工作流 -> 取消选中始终显示反汇编

Make sure "Always Show Disassembly" is unchecked

确保未选中“始终显示反汇编”

回答by wscole

I agree with humphriesj regarding "Always Show Disassembly" in Xcode 6.1, and it did work for awhile.

我同意 humphriesj 关于 Xcode 6.1 中“始终显示反汇编”的观点,并且它确实工作了一段时间。

But for me it seems to have turned itself back on,even though it was still uncheckedin the menu. I turned it on and then back off, and finally I can see the source code again.

但对我来说,它似乎又重新打开了,即使在菜单中仍未选中。我打开然后又关闭,终于可以再次看到源代码了。

回答by Ray Cheong

You can try this

你可以试试这个

Product > Debug > Create Symbolic Breakpoint

产品 > 调试 > 创建符号断点