문제

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 - "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 in - "Step into", F7, continuing execution but stopping at the first line of code in the method your current line of code references;

step out - "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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top