User forums > Using Code::Blocks

Selecting the debugger

(1/1)

pabristow:
I have several versions of GCC and Clang compilers installed and used to build targets, each has a version of debugger gdb.exe.

How do ensure the the matching version is used for each build target?

Or should I just select one in Settings, debugger, for example

C:\Program Files\mingw-w64\x86_64-5.3.0-win32-seh-rt_v4-rev0\mingw64\bin\gdb.exe

(which is the most recent version)

and assume that this will work for all the compiler versions?

But is the Clang debugger different from GCC?

Thank you.  Paul

oBFusCATed:
1. Make different configs for the debuggers in Settings -> Debugger
2. Select the proper debugger in the Settings -> Compiler -> Toolchain executable
3. Select Debug -> Active debugger -> Target's default

pabristow:
Should I have created a new debug configuration for each gcc version?

GCC530_debugger, GCC492_debugger ... with the probably respective .gdb.exe

(And I'm not sure which gcc debug to use for each Clang, but that's probably a question for elsewhere).

Thanks.

oBFusCATed:
If I were you I'd use the latest version of gdb for all at first.
For clang I don't know.

Navigation

[0] Message Index

Go to full version