如何在Xcode中找到错误的位置 [英] How to find the location of error in Xcode

查看:174
本文介绍了如何在Xcode中找到错误的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更改Xcode中的首选项,使其突出显示错误的确切位置,如其他编程环境,而不是简单地返回SIGABRT?或者这是不可能的?

How can I change the preferences in Xcode so that it highlights the exact location of an error like other programming environments instead of simply returning SIGABRT? Or is this not possible?

推荐答案

Xcode应该已经停止,并显示出SIGNART信号发生时执行的位置。 (它对我来说没有任何特殊的配置)。

Xcode should already stop and show where execution is when a signal like SIGABRT occurs. (It does for me, without any special configuration).


一个NSInvalidArgumentException发生Xcode只突出显示main.m

a NSInvalidArgumentException occurs Xcode only highlights main.m

这不是你需要捕捉的信号,这是例外。转到断点导航器并添加一个异常断点。

It's not signals you need to catch for that, it's exceptions. Go to the breakpoint navigator and add an exception breakpoint.

这篇关于如何在Xcode中找到错误的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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