In your screenshot you have not opened the project, only the c file. The debugger can't work if you don't use a project...
[Edit:]If you reopen codeblocks you have to load the *.cbp file not the .c file
If you have done it correctly you will see the project on the left site under "worspace". From there you can open your c file
greetings