I know you can just press "Step Into" to go to the next line and it will automatically take you to that line if you have wandered off, but what if I don't want to skip the currently executing line? Thanks!
In the pane on the left hand side (cmd + 0 to show if it's not visible), selected the 6th tab (cmd + 6 to select) which should look like:
In this pane you should now notice that at the bottom there is a list of all the active threads in your application. One (or maybe more) of them will be open showing a stack trace for the thread, like:
The top most item in the list is where that thread is currently paused. The line which your breakpoint, is on will be indicated with the breakpoint icon on the left (if you stopped at a breakpoint that is). In the image you can see that I had a breakpoint in -[AppDelegate applicationDidFinishLaunching:]. Simply click on the line of code to jump back to it, you can also easily look back up the call tree to trace bugs from here.
Hope this helps!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With