Starting the First Debugging Session

The IDE provides several ways to start a debugging session:

To run your program until it reaches a breakpoint:

  1. Set a breakpoint in your program.

    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.

  2. From the main window, choose Debug and choose Start (Alt-F5).

    The IDE switches to the debugging workspace and runs the program until it reaches the breakpoint.

To run your program to the first line:

To run your program to the cursor location:

  1. In the Source Editor window, click the line where you want to stop program execution.
  2. From the main window, choose Debug and choose Run to Cursor (F4).
To debug a project:

  1. Set a breakpoint in your program.
  2. From the main window, choose Debug and choose Debug Project (Ctrl-Shift-F5).
  3. See also
    Attaching the Debugger to a Running Process
    Stepping Through Your Program
    The Debug Environment
    Starting an Additional Debugging Session

    Legal Notices