在xCode中自动跳过 [英] Automatic Step over in xCode

查看:219
本文介绍了在xCode中自动跳过的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在调试我的代码,并考虑在xCode调试模式下自动逐步执行或逐行进行的一种可能性。看到代码将一行一行地执行,而不是为每一个下一步点击而更有效率。也许theres一种方法可以为每一个下一步设置一个计时器。
我正在搜索类似的东西,但调试模式的帖子太多,只是解释基本的东西。

解决方案

也许我不明白这个问题,但三个关键按钮是:



- Step over, F6 ,继续执行,但停止在下一行代码(但不是单步执行当前行的代码引用);



- Step进入, F7 ,继续执行,但停止在当前代码行引用的方法的第一行代码;



- 退出, F8 ,继续执行,但停止在称为当前方法的代码。



请参阅控制程序执行



另一个明显的技巧是明智的使用设置断点或设置观察点让调试器在特定变量发生变化时自动暂停。)



可能值得一看在Xcode中调试 WWDC 2012视频


I was debugging my code and thought about a possibility of automatic stepping over or Step into line by line in the xCode debug mode. It would be more efficient to see the way the code will be executed line by line without clicking for every next step. Maybe theres a way you can set a timer for every next step. I was searching for something like that but there are too many posts for the debug mode which just explain the basic stuff.

解决方案

Maybe I'm not understanding the question, but the three key buttons are:

- "Step over", F6, continuing execution but stopping at the next line of code (but not single stepping through the method that the current line of code references);

- "Step into", F7, continuing execution but stopping at the first line of code in the method your current line of code references;

- "Step out", F8, continuing execution but stopping at code that called current method.

See Control Program Execution of the Xcode Users Guide.

The other obvious technique is judicious use of setting breakpoints or setting "watch point" (i.e. have the debugger automatically pause whenever a particular variable changes).

Probably worth seeing Debugging in Xcode WWDC 2012 video

这篇关于在xCode中自动跳过的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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