在xCode中自动跳过 [英] Automatic Step over in xCode
问题描述
我正在搜索类似的东西,但调试模式的帖子太多,只是解释基本的东西。
也许我不明白这个问题,但三个关键按钮是:
- 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屋!