Results 1 to 2 of 2

Thread: Debugger crashes on QApplication

  1. #1
    Join Date
    Sep 2011
    Posts
    20
    Qt products
    Qt5
    Platforms
    Windows

    Default Debugger crashes on QApplication

    After upgrading from Qt 4.7 to Qt 4.8 with a clean Qt SDK installation on Windows 7 64-bit with MinGW, GDB debugger crashes on QApplication.

    Here's what my Qt SDK installation looks like: http://i.imgur.com/8Cu5F.png

    Debugging the default generated Qt GUI Project and setting break points on every line in the main function, which compiles and runs just fine:

    Qt Code:
    1. int main(int argc, char *argv[])
    2. {
    3. QApplication a(argc, argv);
    4. MainWindow w;
    5. w.show();
    6.  
    7. return a.exec();
    8. }
    To copy to clipboard, switch view to plain text mode 

    The debuggers all behave differently:

    C:\QtSDK\pythongdb\python_2.7based\gdb-i686-pc-mingw32.exe

    Start debugging
    Stops on breakpoint set on the line QApplication a(argc, argv);
    When I click Continue to the next line MainWindow w:



    C:\QtSDK\mingw\bin\gdb.exe

    gdb.exe crashes before debugging starts:



    C:\MinGW\bin\gdb.exe

    Same as C:\QtSDK\pythongdb\python_2.7based\gdb-i686-pc-mingw32.exe

    C:\MinGW\bin\gdb-python27.exe

    Same as C:\QtSDK\mingw\bin\gdb.exe

    I also tried an installation with Qt 4.8 MSVC 2010 checked and MinGW unchecked, but that one resulted in all the same.

    I also tried to separately install Qt libraries 4.8.0 for Windows (minGW 4.4, 354 MB) and Qt Creator 2.4.1 for Windows (53 MB), also crashed the same.

    What next?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Debugger crashes on QApplication

    Have a look at bold sections:
    After upgrading from Qt 4.7 to Qt 4.8 with a clean Qt SDK installation on Windows 7 64-bit
    C:\QtSDK\pythongdb\python_2.7based\gdb-i686-pc-mingw32.exe
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Debugger: None of the debugger engines [...] capable of debugging binaries
    By schludy in forum Installation and Deployment
    Replies: 1
    Last Post: 21st February 2012, 18:32
  2. cdb as debugger
    By pkj in forum Newbie
    Replies: 3
    Last Post: 27th January 2012, 13:59
  3. Replies: 2
    Last Post: 1st August 2011, 06:30
  4. QT IDE and Debugger
    By onefootswill in forum Newbie
    Replies: 16
    Last Post: 25th July 2008, 20:39
  5. <QtGui/QApplication> vs. <QApplication>
    By seneca in forum Qt Programming
    Replies: 5
    Last Post: 25th January 2006, 10:58

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.