codelite cannot debug using msys2 gdb debugger

CodeLite installation/troubleshooting forum
sepisoad
CodeLite Curious
Posts: 2
Joined: Sun Sep 11, 2016 2:55 pm
Genuine User: Yes
IDE Question: C++
Contact:

codelite cannot debug using msys2 gdb debugger

Post by sepisoad »

today I decided to install msys2 on my win7 since I had a very positive experience using it under my win10 box.
after installing msys2, I used pacman to install gcc and gdb and all the required utilities.
then I added the gcc compiler to codelite...
I was able to build/compile and run my c app using mingw gcc compiler provided by msys2 but surprisingly when I debugged my code the debugger would stop debugging after a few seconds.
I check all the settings and options and I was not able to get my code debugged using codelite. so I decided to use my old TDM-GCC Compiler Suite for Windows installation which comes with gdb as well and surprisingly again codelite began playing nice with TDM-GCC gdb.

for now this trick works for now but I would like to use msys2 gdb.

can anyone tell me what is wrong with codelite.

win7 32bit
codelite: 9.2.0 stable
msys2 gcc: 6.2.0
msys2 gdb: 7.12
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: codelite cannot debug using msys2 gdb debugger

Post by eranif »

I did not try this myself, but try setting the full path to the debugger in the selected compiler toolchain you are using:

* To see which compiler toolchain you are using, see project settings->general->compiler field
* Open the toolchain settings from: settings->build settings->compilers-><COMPILER NAME>->Tools tab->Gdb field, and set the full path (using Windows native path and _not_ in MSYS2 path style)

This should work. If it does not, then try running the debugger from the command line (again, NOT from within MSYS shell, but from a native Windows CMD.EXE terminal and see if it starts properly)
In the future: please read the HOW TO POST thread and post the relevant information (see my signature)

Eran
Make sure you have read the HOW TO POST thread
Post Reply