Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] Qt Creator cannot debug console applications
QtWS25 Last Chance

[SOLVED] Qt Creator cannot debug console applications

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 2 Posters 3.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dplamp
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      What are the compiler and gdb versions?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dplamp
        wrote on last edited by
        #3

        MinGW32 g++ v4.4.0, gdb v6.8.

        I need this old version to use the Qt 4.8.5 Windows binaries.

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dplamp
          wrote on last edited by
          #4

          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 !

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved