User forums > Using Code::Blocks
CB 20.03 for windows, debug problems
i386:
I download the 64bit version 'gdb-10.1.90.20201024-x86_64.7z', and extract to codeblocks installation directory. Setup the debugger as the link says.
Then setup a breakpiont and run Debugging...
Starting debugger: C:\Program Files\CodeBlocks\gdb-10.1.90.20201024-x86_64\bin\gdb.exe -nx -fullname -quiet -args D:/devel/cb/vulkan/bin/Debug/vulkan.exe
done
Setting breakpoints
Debugger name and version: GNU gdb (ssbssa-1) 10.1.90.20201024-git
Child process PID: 9436
[Inferior 1 (process 9436) exited normally]
Debugger finished with status 0
----------->
The breakpoint was skipped, and the application 'vulkan' run to the end normally[judging from 'vulkan' app log]. The break point has no effect. I am sure the breakpoint is a VALID point. why?
oBFusCATed:
Post the full rebuild and debug logs.
i386:
I uninstall th CB 20.03. Then re-install it and setup the new gdb as above. After that I find all the debug process is OK.
These are the debug boot up log, the debugger stops at the breakpoint as expected:
---------------------
Active debugger config: GDB/CDB debugger:Default
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: D:\cb\vulkan\
Adding source dir: D:\cb\vulkan\
Adding file: D:\cb\vulkan\bin\Debug\vulkan.exe
Changing directory to: D:/cb/vulkan/.
Set variable: PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\CodeBlocks\MinGW;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0
Starting debugger: C:\Program Files\CodeBlocks\gdb-10.1.90.20201024-x86_64\bin\gdb.exe -nx -fullname -quiet -args D:/devel/cb/vulkan/bin/Debug/vulkan.exe
done
Setting breakpoints
Debugger name and version: GNU gdb (ssbssa-1) 10.1.90.20201024-git
Child process PID: 8956
At D:\cb\vulkan\entry.cpp:30
oBFusCATed:
The uninstall/install cycle doesn't change anything in your settings.
You still don't have a clue where the problem was...
Just a note.
AndrewCot:
@i386 I have just downloaded the https://github.com/ssbssa/gdb/releases/download/gdb-10.2.90.20210425/gdb-10.2.90.20210425-i686.7z file and copied the files over the MING32 installation files.
I was able to set a breakpoint and it stooped on the breakpoint.
I suggest trying the later GDB.
Navigation
[0] Message Index
[*] Previous page
Go to full version