Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse, Qt Widgets & gdb possible?(can Eclipse use gdb to debug a project employing Qt Widgets?)
Eclipse, Qt Widgets & gdb possible? [message #1646885] Tue, 03 March 2015 06:35 Go to next message
Sequoia Tree is currently offline Sequoia TreeFriend
Messages: 28
Registered: August 2014
Junior Member
I've got a project with about 40 classes employing Qt Widgets.

After much pain I've got the makefile to make it, now I'd like to use the MinGW gdb to debug it.

I've managed to get the following simple cpp file to compile and run with gdb :

For this I had to remove this option from the link command : -Wl,s
// Simp1.cpp

int main(int argc, char *argv[]) {

    int k = 0;    //<-----breakpoint

    return 0;
}

however when I add Qt classes to the mix it does not stop at the breakpoint.

Adding and removing -Wl,s to the link command has no effect.

Using the exact same compile commands and link commands as the QtCreator has no effect.
// Simp2.cpp

#include <QApplication>
#include "MyMainWindow.h"

int main(int argc, char *argv[]) {

    int k = 0;         //<-----breakpoint

    QApplication a(argc, argv);

    MyMainWindow mw;
    mw.show();

    return a.exec();
}

Question : is it at all possible to use MinGW gdb on a Qt class project in Eclipse?
yes or no?

[Updated on: Tue, 03 March 2015 06:37]

Report message to a moderator

Re: Eclipse, Qt Widgets & gdb possible? [message #1658223 is a reply to message #1646885] Sun, 08 March 2015 08:26 Go to previous message
Sequoia Tree is currently offline Sequoia TreeFriend
Messages: 28
Registered: August 2014
Junior Member
Solution found : use CodeBlocks
Previous Topic:Eclipse CDT - external libraries
Next Topic:Eclipse Luna C++ compiles but will not run on OS X 10.8.5
Goto Forum:
  


Current Time: Fri Apr 26 02:24:04 GMT 2024

Powered by FUDForum. Page generated in 0.02985 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top