Starting a C or C++ Debugging Session

See Also 

When you start a debugging session, the IDE starts the gbd debugger, then runs the application inside the debugger. The IDE automatically opens the debugger windows and prints debugger output to the Output window.

Debugging the Main Project

All of the debugging commands in the Run menu are run on the main project. No matter what file or project is selected in the Projects window or Source Editor, these commands begin the debugging session on the main project

Command Description
Run > Debug Main Project Runs the program until it reaches a breakpoint or exception or until the program terminates normally.
Run > Step Into Runs the program to the first line after the main routine and pauses execution before any changes have been made to the state of the program.

Debugging an Individual Project

Command Description
Debug Project The IDE runs the project in the debugger until execution stops or a breakpoint is reached.
Step Into Project The IDE runs the project in the debugger to the first line after the main routine.
See Also
Attaching the Debugger to a Running Process
Setting a Breakpoint in a C or C++ Program

Legal Notices