As for the fact it does not compile now, that's normal you are specifying MS compiler options to GCC :
<Add option="/Zi /D_DEBUG" />
<Add option="/Zi" />
<Add option="/D_DEBUG" />
<Add option="/DEBUG" />
<Add option="/Ox" />
<Add option="/DNDEBUG" />
<Add option="/W3" />
Tip : just create in CB a new console project, and then have a look at the cbp on which compiler options to activate: Purely -g -o2 etc ..
So your mix of Ms compiler (which wants another debugger) and gdb.exe could explain why you could not debug.