xcode - 调试器停止在 Xcode 4 中不存在的断点处

标签 xcode debugging xcode4 breakpoints

自从升级到 Xcode 4 以来,我的应用程序停止在我认为不存在的断点处。当它中断时,断点导航器中不会显示断点,编辑器会显示:

Thread:1 Stopped at breakpoint 17

还有人看到这个吗?也许这是新事物?

最佳答案

也许这是一个 Xcode 错误,但我仍然有解决方案。

您可以使用 LLDB 查看和操作所有实际断点。

只需在 lldb 窗口中键入以下命令:

(lldb) is the prompt.

(lldb) help    -> for help
(lldb) help breakpoint   -> for breakpoint subcommand's help
(lldb) breakpoint list    -> list all the breakpoints.
(lldb) breakpoint delete  -> Delete the specified breakpoint(s).  If no breakpoints are
               specified, delete them all.
(lldb) breakpoint delete 7.1   -> delete breanpoint 7.1

and, you can use this command to continue the program:
(lldb) c

关于xcode - 调试器停止在 Xcode 4 中不存在的断点处,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5308971/

相关文章:

Windows 键盘 Hook 挂起调试器

python - Xcode:通过 LLDB 脚本或其他方式显示 Apple 框架类的属性

ios - 来自 Storyboard 的 View 不会出现在 Xcode Preview 中

ios - 重命名后找不到 Storyboard

objective-c - NSOpenPanel 在 Objective-C 中获取文件名?

python - OSError : [Errno 13] Permission denied while calling os. 删除()

Xcode:用于条件调试/测试代码的预处理器宏

xcode4 - 如何在 XCode 4 中设置特定于文件的build设置?

objective-c - 如何使用 JSON 解析一个对象中的 5 个数组

iphone - 更改 Xcode 4 用于属性列表的编辑器?