The IDE provides several ways to start a debugging session:
To run your program until it reaches a breakpoint:
To set a line breakpoint using the Source Editor, click in the left margin adjacent to the line where you want to set your breakpoint. To set a more complex breakpoint, see Setting Breakpoints.
The IDE switches to the debugging workspace and runs the program until it reaches the breakpoint.
To run your program to the first line:
Program execution stops on the first line after the main method before any changes have been made to the state of the program.
To run your program to the cursor location:
See also | |
---|---|
Attaching the Debugger to a Running Process
Stepping Through Your Program The Debug Environment Starting an Additional Debugging Session |