I am new to C and Code::Blocks. I am able to run this Hello World program, but i am unable to use a debugger on it. When I set a break point and try to debug the program, I get the below error message.
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Break Here!\n"); //Break point on this line
printf("Hello world!\n");
return 0;
}
Starting debugger: C:\Users\Curtis\mingw64\bin\gdb.exe -nx -fullname -quiet -args "Q:/Learn-C/1 - Hello World/Hello World/bin/Debug/Hello World.exe"
done
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 11.2
Starting the debuggee failed: No executable specified, use `target exec'
What should I do to get the debugger to work?