Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator debugger hangs
Qt 6.11 is out! See what's new in the release blog

Qt Creator debugger hangs

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 4.1k 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.
  • P Offline
    P Offline
    PBNeves
    wrote on last edited by A Former User
    #1

    I'm starting to code with Qt Creator but I'm having problems using the debugger because it hangs :(
    I can start the debugger an break to the main function. My main function is :

    #include "mainwindow.h"
    #include <QApplication>
    
    int main(int argc, char *argv[])
    {
        QApplication a(argc, argv);
        MainWindow w;
        w.show();
    
        return a.exec();
    }
    

    When i start debugging it runs to the first line and i can choose step over, but on the line MainWindow w it hangs and in the debugger log apears:

    s[Thread debugging using libthread_db enabled]
    >~"Using host libthread_db library \"/lib64/libthread_db.so.1\".\n"
    
    NON-CRITICAL TIMEOUT
    COMMANDS STILL IN PROGRESS: 
    

    It seams a gdb timeout, but I have no idea what is going wrong, so any help will be appreciate.
    I'm using Slackware Linux 64 bits and Qt creator 4.1.0.

    Thanks.

    [Edit: Added code tags -- @Wieland]

    1 Reply Last reply
    0
    • P Offline
      P Offline
      PBNeves
      wrote on last edited by
      #2

      Unchecking the option "Load .gdbinit on startup" on Tools->options->Debugger->GDB solved the problem.
      Thank you.

      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