为什么我的断点不起作用? [英] Why aren't my breakpoints working?

查看:77
本文介绍了为什么我的断点不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设置了断点,但是Xcode似乎忽略了它们。

I have breakpoints set but Xcode appears to ignore them.

推荐答案

首先,我同意100%的断点那些说关闭 懒惰地加载符号的人。

First of all, I agree 100% with the earlier folks that said turn OFF Load Symbols Lazily.

我还有两件事要

(我的第一个建议听起来很明显,但是第一次有人向我建议时,我的反应是这样的:来吧,拜托,你真的认为我不会更好……哦。)

(My first suggestion sounds obvious, but the first time someone suggested it to me, my reaction went along these lines: "come on, please, you really think I wouldn't know better...... oh.")


  1. 请确保您没有意外设置活动构建配置到发布。

  1. Make sure you haven't accidentally set "Active Build Configuration" to "Release."

在项目图形树形显示的目标下,右键单击目标并执行获取信息。 。查找一个名为 Generate Debug Symbols(或类似名称)的属性,并确保已选中该属性(也称为 ON)。另外,您可以尝试查找(也在Target >> Get Info中)名为 Debug Information Format的属性,并将其设置为带有dsym文件的小矮人。

Under "Targets" in the graphical tree display of your project, right click on your Target and do "Get Info." Look for a property named "Generate Debug Symbols" (or similar) and make sure this is CHECKED (aka ON). Also, you might try finding (also in Target >> Get Info) a property called "Debug Information Format" and setting it to "Dwarf with dsym file."

目标>>获取信息下还有许多其他属性可能会影响您。寻找诸如优化或压缩代码之类的东西,然后将其关闭(我假设您正在调试模式下工作,因此这不是不好的建议)。另外,查找诸如剥离符号之类的内容,并确保其也处于关闭状态。例如,对于调试目标, Strip Linked Product应设置为 No。

There are a number of other properties under Target >> Get Info that might affect you. Look for things like optimizing or compressing code and turn that stuff OFF (I assume you are working in a debug mode, so that this is not bad advice). Also, look for things like stripping symbols and make sure that is also OFF. For example, "Strip Linked Product" should be set to "No" for the Debug target.

这篇关于为什么我的断点不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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