Starting a C or C++ Debugging Session
See Also  
When you start a debugging session, the IDE starts the 
debugger in the project's associated tool collection, then runs the project inside the debugger. The IDE automatically
opens the debugger windows and prints debugger output to the Output window.
To debug a project, do one of the following:
- Select the project in the Projects window and choose Debug > Debug Project or click the Debug Project toolbar 
button  . The program runs until it 
reaches a breakpoint or exception or until it terminates normally . The program runs until it 
reaches a breakpoint or exception or until it terminates normally
- Right-click the project in the Projects window and choose Debug. The IDE 
runs the project in the debugger until execution stops or a breakpoint is reached.
- Right-click the project in the Projects window and choose Step Into. The IDE 
runs the project in the debugger to the first line after the main routine and 
pauses execution before any changes have been made to the state of the program.
To restart an existing debugging session:
- When your program is stopped at a breakpoint or paused, click the Restart toolbar 
    button  . Restarting a debugging session throws out any cached state. . Restarting a debugging session throws out any cached state.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.