The IDE provides several ways to start a debugging session.
To run your program until it reaches a breakpoint:
To set a breakpoint on a line, right-click the line in the Source Editor and choose Toggle 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 Multiple Sessions |