Starting a 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 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.

  2. From the main window, choose Debug and choose Start (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 Multiple Sessions

    Legal Notices