I try to describe the steps a bit more in detail, maybe this helps. (also you can learn a bit how to use the debugger with the command line)
1) Test if the debugger is in the path:
1.1) Press the window button and the r key (WIN+r). A window will pop up. Type "cmd" and hit the ENTER key
1.2) Now the console (cmd) pops up with the base path "C:\User\USERNAME". We now have to navigate to the project folder. You can do this by typing "cd PATH\TO\YOUR\PROJECT". You can use the tab key to complete the path. So if your project path is C:\User\USERNAME\Documents\MyProject you can type "cd c:\U" and press the tab key and windows will complete the path to "cd c:\User" then you can enter the \U for the next path "cd c:\User\U" and hit tab and windows will complete to "cd C:\User\USERNAME" and so on. If there are multiple folders with the same name you can hit multiple times tab and windows will cycle through them. Here it is handy to not have any white spaces in your path. I recommend always to not use white spaces in any path.
You should navigate to your project/bin folder where your exe is.
1.3) Now lets start gdb by entering "gdb EXECUTABLENAME"
1.4) If there is a error:
'gdb' is not recognized as an internal or external command,
operable program or batch file.
You have to add gdb to your path:
1.4.1) Search for gdb on your pc. If you have installed the bundled codeblocks with mingw, gdb.exe is in the one subdirectory of the codeblocks installation folder. Search for it and remember the path.
1.4.2) Go back to your cmd window and type "set PATH=%PATH%;PATH_TO_GDB" and hit enter
Now if you type "gdb EXECUTABLENAME" and Enter you should see
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from 123.exe...done.
2) Now you have to enter all commands that codeblocks executes during startup. You can find this commands in the log you posted. The commands are after the line
So your log is like this:
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) 7.10.1
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
you have to enter
in the gdb window and press enter. Sadly you have to do this for all commands (not really but for simplicity lets enter all):
set confirm off
set width 0
set height 0
set breakpoint pending on
set print asm-demangle on
set unwindonsignal on
set print elements 0
set new-console on
set disassembly-flavor att
catch throw
source C:\Program Files\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
set follow-fork-mode child
directory C:/Users/2D_Fluid_I/
additionally obfuscated asked you to enter this additional commands at one time (not at the same time, enter one of the following line and go with the next step, after that does not work come back here and try the next line):
break C:/Users/2D_Fluid_I/main.cpp:147
break C:\Users\2D_Fluid_I\main.cpp:147
break "C:\Users\2D_Fluid_I\main.cpp:147"
2.1) Now lets run the debugger by typing
and hit enter
2.2) GDB will run now until it hits a breakpoint. You can see if it hits a breakpoint by the following message:
Breakpoint 1, main () at \tmp\123\main.cpp:7
If this worked please tell us the command you entered from the top. If it does not work try a other command from obfuscated.
2.3) To stop gdb simply type "quit" and hit ENTER
I hope this makes things more clear.