为什么Xcode 4不会违反例外? [英] Why would Xcode 4 not be breaking on exceptions?

查看:159
本文介绍了为什么Xcode 4不会违反例外?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近Xcode 4已经停止了例外。每个异常都会导致调试器在 UIApplicationMain 中停止,没有堆栈跟踪。




  • 我在 objc_exception_throw (由GDB日志确认)上设置了一个断点。

  • 断点被打开(由GDB确认,其他断点工作正常)

  • LLVM GCC 4.2是我的编译器

  • 启用Objective-C异常已打开



是否有任何原因断点可能无法正常工作?任何我缺少的标志?

解决方案

在Xcode 4中,您可以通过左侧的断点选项卡添加异常断点苹果+ 6)。您可以在左下角添加小加号的新异常。



请参阅:Run>停止Objective-C例外在Xcode 4?



有关更多说明。


Just recently Xcode 4 has stopped breaking on exceptions. Every exception causes the debugger to stop at UIApplicationMain with no stack trace.

  • I have a breakpoint set on objc_exception_throw (confirmed by GDB logs)
  • Breakpoints are turned on (confirmed by GDB and other breakpoints work fine)
  • LLVM GCC 4.2 is my compiler
  • Enable Objective-C Exceptions is turned on

Are there any reasons breakpoints may not be working? Any flags I'm missing?

解决方案

In Xcode 4, you add the breakpoint for exceptions via breakpoint tab in the left (hit Apple+6). You add the new exception with the little plus in the bottom left.

See: "Run > Stop on Objective-C exception" in Xcode 4?

For more instructions.

这篇关于为什么Xcode 4不会违反例外?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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