[SOLVED] Qt Creator cannot debug console applications
I am writing a library and a program to test it. I am using Qt Creator because it's great, but I try to avoid any Qt dependency. I don't use shadow builds.
When I hit F5, the program runs and exists normally, but it won't stop on the breakpoints. I get a message box that says GDB exited unexpectedly. What's wrong ? I can debug with GDB in a console, but, well...
The test program pro file contains ;
@TEMPLATE = app
CONFIG -= qt
CONFIG += qtcore
CONFIG += console
CONFIG += debug_and_release
Platform : Win 7 64, Qt 4.8.5, Qt Creator 2.8.1
What are the compiler and gdb versions?
MinGW32 g++ v4.4.0, gdb v6.8.
I need this old version to use the Qt 4.8.5 Windows binaries.
OK, I finally got it !
So, to debug with Qt Creator, with Qt 4.8.5 or without Qt at all, you need :
- a gdb "Python-enabled" : http://builds.qt-project.org/job/gdb-windows/
- MinGW 4.4.0 : http://nosymbolfound.blogspot.fr/2012/12/since-until-now-qt-under-windows-is.html
Then, in Qt Creator options, play a little bit with the kits and enable debugging helper.
You can always install the latest MinGW in another directory.
Big thanks to the guys who keep these archives online !