User forums > Using Code::Blocks

Can't debug my project


I'm trying to debug my project in codeblocks with gdb.exe, but everytime I run it, it stops at "Setting breakpoints". When I try to go to "next instruction", it says "continuing" but does nothing


Active debugger config: GDB/CDB debugger:Default Building to ensure
sources are up-to-date Selecting target:  Debug Adding source dir:
C:\Users\jayok\Desktop\cpp_stuff\ascii_terraria\ Adding source dir:
C:\Users\jayok\Desktop\cpp_stuff\ascii_terraria\ Adding file:
Changing directory to:
C:/Users/jayok/Desktop/cpp_stuff/ascii_terraria/. Set variable:
PATH=.;C:\msys64\mingw64\bin;C:\msys64\mingw64;C:\Program Files
Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA
Starting debugger: C:\msys64\usr\bin\gdb.exe -nx -fullname -quiet -args C:/Users/jayok/Desktop/cpp_stuff/ascii_terraria/bin/Debug/ascii_terraria.exe
done Setting breakpoints Continuing... Continuing...

"C:\msys64\usr\bin\gdb.exe" is the wrong gdb.exe to use with "C:\msys64\mingw64\bin" toolchain path.

The correct path is likely "C:\msys64\mingw64\bin\gdb.exe".

Edit: The "C:\msys64\usr\bin\gdb.exe" is an Cygwin like GDB.
The "C:\msys64\mingw64\bin\gdb.exe" is an MinGW GDB.
I have been told on this website that the Cygwin GDB has path issues when used under Code::Blocks; but, that was many years ago. The work around back then was to use the MinGW GDB to debug Cygwin apps.

Tim S.

i dont have "C:\msys64\mingw64\bin\gdb.exe"


--- Quote from: darkonaito_ on July 14, 2020, 11:43:22 pm ---i dont have "C:\msys64\mingw64\bin\gdb.exe"

--- End quote ---

Then install it via the "mingw-w64-x86_64-gdb" [MSys2 MinGW] package.

Tim S.


[0] Message Index

Go to full version