Just because a program has no compilation errors does not mean that it works correctly. In case of malfunction, the program must be debugged to find the problem. Symbolic debugging allows to execute the program in a controlled way, step by step, stopping its execution and visualizing the value of the variables as we go along the program flow.
It is recommended to review the concepts of breakpoint, step-over, step-into and continue, in addition to the debugging procedures described in https://hackmd.io/@parraman/prog-lab-gfie-practica-0#Depurando-programas.
Debug Configurations
In order to be able to debug symbolically, it is necessary to define a debug configuration in eclipse. This is done through the Run -> Debug Configurations option.
In the previous image you can see the DEBUG_P0 configuration created in the GDB Hardware Debugging section and that refers to the P0 project. Using the options above the configuration explorer on the left it is possible to manage new configurations or delete the ones that are no longer used.
The main tab simply contains the name of the P0 project and the Debug/P0 binary to be debugged. If you want to debug another program, the corresponding configuration should be created by changing the name of the project.