Enable the full debug log:
Settings->Debugger->Enable full debug log
and post the log found in the Debug log tab of the log pane here in code tags (the # symbol in the forum editor)
One reason is, tat your application crashes, or terminates...
Or you have a bad gdb (the version shipped with codeblocks is probably broken)