- Starting a Debugging Session
- Attaching the Debugger to a Running Application
- Starting the Debugger Outside of the Project's Main Class
- Stepping Through Code
- Setting Breakpoints
- Managing Breakpoints
- Customizing Breakpoint Behavior
- Monitoring Variables and Expressions
- Backing Up from a Method to Its Call
- Monitoring and Controlling Execution of Threads
- Fixing Code During a Debugging Session
- Viewing Multiple Debugger Windows Simultaneously
Backing Up from a Method to Its Call
Under some circumstances, it might be useful for you to step back in your code. For example, if you hit a breakpoint and would like to see how the code leading up to that breakpoint works, you can remove (pop) the current call from the call stack to re-execute the method.
You can open the Call Stack window to view all of the method calls within the current chain of method calls in the current thread. The current call is marked with the icon. Other calls in the stack are marked with the icon.
To back up to a previous method call:
- Open the Call Stack window (Alt-Shift-3).
- Right-click the line in the Call Stack window that represents the place in the code that you want to return to and choose Pop to Here.
The program counter returns to the line where the call was made. You can then re-execute the method.