调试器在xCode 4中的不存在的断点处停止

use*_*859 11 iphone debugging xcode breakpoints xcode4

自升级到xCode 4以来,我的应用程序停在我认为不存在的断点处.当它断开时,没有断点显示,编辑说"线程:1停在断点17".在Breakpoint导航器中查看,在任何地方都没有断点17,并且它所停留的线路未在任何地方列出.

其他人看到这个?这可能是新的吗?

约翰

flu*_*uke 25

也许这是一个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
Run Code Online (Sandbox Code Playgroud)

  • +1因为这实际上列出了断点及其数字,断点导航器没有.对我来说,事实证明异常断点触发,即使没有抛出异常. (2认同)

Gam*_*ing 4

Command+ alt+B查看所有断点。

选择要删除的断点并按delete