保持xcode调试器不再脱离文件 [英] Keep xcode debugger from stepping out of file

查看:130
本文介绍了保持xcode调试器不再脱离文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经常,当我调试并通过一个线程时,Xcode将我拉入另一个线程(我猜测正在执行所有其他涉及设置视图的内容等)。问题是这不能帮助我,因为我只想观察我自己编写的代码。





有什么办法可以防止这种情况吗?

解决方案

如果您使用过渡,通常不会看到此视图,只有当我在复合语句。



你看到的不是你的代码,而是通过代码编写的调试器没有源代码(例如UIKit的东西)。如果您在此视图中点击退出或逐步,您将返回到您的代码。


Every so often, when I'm debugging and stepping through a thread, Xcode pulls me into another thread (that I'm guessing is executing all the other stuff involved in setting up views etc.). the problem is that this doesn't help me, as I just want to observe the code I've written myself.

Is there any way to prevent this?

解决方案

If you use "step over" you normally won't see this view, I only ever see it when I do "step into" on lines with a compound statement.

What you are seeing is not your code, but the debugger working through code it doesn't have the source to (e.g. UIKit stuff). If you hit "step out" or "step over" in this view, you will return to your code.

这篇关于保持xcode调试器不再脱离文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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