The debugger lets you control the execution of your program by setting breakpoints, suspending executed programs, stepping through your code, and examining the contents of variables.
The Debug Configurations dialog opens.
If a project is selected in the Project Explorer view the following data is automatically entered, take a moment to verify its accuracy or change as needed.
In the Project edit box, type or choose your project, e.g. HelloWorld.
NOTE If you see the error "[Debugger]: No debugger available", select the Debugger tab
and choose a valid debugger for your platform (e.g. gdb/mi).
You may be prompted to switch to the Debug perspective. Click Yes
The Debug perspective appears with the helloworld.exe application window open. The C/C++ editor repositions in the perspective.
NOTE If you see the error "Can't find source file" in the editor view, use the Locate File button to locate your source file.
The breakpoint will be hit.
The output in the helloworld.exe application window is: "You just entered m, you need to enter m to exit."
To learn more about debugging, see the related debug conceptual topics.
Debug overview
Debug information
Debug view
Debug launch controls