Ultimate Debugging Guide for xCode

I will update this post whenever I learn a new debugging technique.

1)Watchpoint: Keep track of a variable. With execution of the program paused at a breakpoint, select the variable in the Variable list in the Debugger window. You need to open variable list while debugging. Run > Variables View > Watch Variable

2)Memory Browser:Watch the memory while debugging. Run > Show > Memory Browsers

3)Fix: xCode allows to modify code while debugging with certain restrictions. After modification, Run > Fix. Look Apple Official Docs for more information...

No comments:

Post a Comment