Starting the Debugger
To turn on debugging for a source file:
- Double-click the target's name, click the Files tab, and open the Sources folder.
- Click the bug icon so it changes from gray to black.
To start the debugger:
- Click the Debug button.
To build the selected target and start the debugger if the build succeeds:
- Choose Build > Build and Debug.
If the Debug button is not available, try the following:
- Build the selected target.
- Associate an executable with the selected target.See Choosing an Executable.
- If you selected an aggregate target, choose another target. You cannot debug an aggregate target.