The following table shows how to work with C and C++ projects in the NetBeans IDE.

Create and
configure project
|
-
Create a project using the best template for
your programming needs
-
Add project
dependencies for libraries needed by your application.
-
Configure the project. A project is
created with Debug and Release configurations. You can modify the settings for these
configurations and create additional configurations.
|
|

Build Project
|
-
Choose Run > Build
Main Project or right-click any project and choose Build Project.
|
|

Run project
|
-
Choose Run > Run Main Project or
right-click any project and choose Run Project.
-
Use the project properties if you want to deploy the project to another location on
your system or set the project to use Remote
Development.
-
Profile the project to detect any runtime
issues with CPU usage, memory leaks, or thread synchronization.
|
|

Debug project
|
-
Set breakpoints or watches in your code.
-
Choose Debug > Debug
Main Project or right-click any project and choose Debug Project. You can also
attach the debugger to a running process.
-
Step through the program execution.
-
Look at the call stack and examine local variables.
-
Choose Debug > Finish Debugger
Session when you are finished debugging.
|