XCode 调试器中的断点
我不明白 XCode 调试器发生了什么。我在 10.5 上使用 Xcode 3.1.2 和 GCC 4.0。有时,偶尔,我测试 C++ 程序时,所有活动断点都会被禁用。没有设置断点 - 程序运行至完成。深蓝色断点图标变为浅蓝色或带有蓝色边框的黄色。查看更改后的断点列表 (CMD-Opt-B ),用复选标记标记的断点现在用连字符标记。 (如何获得带有 markdown 的“复选标记”图标?)
这是在它们正常运行之后。一段时间后,它们通常会再次开始正常运作。我不知道这两种变化的原因是什么。我已关闭/重新打开调试器、文件和完整项目。大多数情况下,当我稍微更改源文件并执行“构建和调试”(Cmd-Y) 时,会恢复正确的喙点状态,但这并不总能解决
我在“GLIBCXX_DEBUG_”问题报告中看到的 问题这里和其他地方。这不是我的问题,因为我使用的是 GCC 4.0,并且不使用这些标志。我还看到过有关非常旧的 XCode 的类似问题的报告。再说一遍,我不认为这适用于我。有什么想法吗?
I don't understand what's going on with the XCode debugger. I am using Xcode 3.1.2 and GCC 4.0 on 10.5. Sometimes, Occasionally, I test a C++ program, all active breakpoints become disabled. No breakpoints are taken - the program runs to completion. The dark blue breakpoint icons change to light blue or yellow with a blue border. Looking at the breakpoints list (CMD-Opt-B ) after the change, the breakpoints that were tagged with a checkmark are now tagged with a hyphen. (how do I get a "checkmark" icon with markdown?)
This is after they have been functioning normally. Sometime later, they will usually begin functioning normally again. I don't know what is responsible for either change. I have closed/reopened the debugger, files, and the full project. Most often, the proper beakpoint status is restored when I trivially change a source file and do a "Build & Debug" (Cmd-Y), but that doesn't always fix things
I have seen the reports of problems about "GLIBCXX_DEBUG_" here and elsewhere. That isn't my problem because I am using GCC 4.0, and don't use those flags. I have also seen reports of a similar problem with a really old XCode. Again, I don't believe that applies to me. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当断点标记变成黄色时,意味着 GDB 正在主动调试多个程序。尝试退出除当前正在调试的程序之外的所有程序。
When the breakpoint markers turn yellow it means that you have more than one program being actively debugged by GDB. Try exiting all the programs except for the one you are currently debugging.
黄色断点符号表示断点未加载到调试器中。如果您有多个项目正在运行,则可能会发生这种情况,正如上一个答案所暗示的那样。如果您在断点关闭而不是打开的情况下运行,也会变成黄色。
A yellow breakpoint symbol indicates the breakpoint is not loaded into the debugger. This can happen if you have more than one project running is what the previous answer was implying. Can also go yellow if you Run with breakpoints off instead of on.