如何让调试器停在任何地方? [英] How to let the debugger stop anywhere?
问题描述
示例:我在模拟器中运行我的应用程序。然后我想弄清楚当我触摸一个按钮是什么正在发生。通常我会首先找出所有这个疯狂的入口点在哪里,以设置一个断点。但现在让我们假设我的应用程序有700个类,它是非常复杂,与超过12.000方法。机会很大,我不知道在哪里放断线。只是在理论上。
Example: I run my app in the simulator. Then I want to figure out what exactly is going on when I touch a button. Normally I would first have to find out where the entry-point of all this madness is in order to place a breakpoint. But now lets assume my app has 700 classes and it's incredibly complex, with more than 12.000 methods. Chances are big I don't know at all where to put the breakpoint. Just in theory.
如何在下次发生事件时让调试器在任何地方停止 我知道我可以在我的应用程序运行时打开/关闭,这是很好,但有一种方法,使它的行为像应用程序中的每一行都有一个断点上吗?希望你知道我的意思。我的英语是可怕的。谢谢。
How can I make the debugger stop anywhere the next time something happens? I know I can switch it on/off while my app is running, which is fine, but is there a way to make it behave like if every line in the app had a breakpoint on it? Hope you know what I mean. My english is horrible. Thank you.
推荐答案
您需要的是符号断点。有关简要说明,请查看此处。
这篇关于如何让调试器停在任何地方?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!