Very slow start of QtCreator debugger under Linux. (Linux Mint 22.1/Ubuntu 24.04)
-
Hello everyone,
I have an issue with a very slow-starting debugger when launching a c++ debugging sessions from within QtCreator. It takes about 30 seconds before my program launches, making repeated debugging restarts quite painful. The same program starts in less than 1 second when running gdb from my system terminal.
I tried various fixes without success, including what was suggested here:
https://forum.qt.io/topic/112648/qt-creator-debugger-very-slow/4?_=1757406648615The only solution that worked -temporarily- was to delete ~/.config/QtProject, which is not a viable workaround. And even then, the issue came back after some time.
Any help in resolving this issues would be greatly appreciated!
My system: Linux Mint 22.01 (Based on Ubuntu 24.04)
QtCreator version:
Product: Qt Creator 13.0.0 Based on: Qt 6.4.2 (GCC 13.2.0, x86_64)
-
Hi @Frcs, I suffer from the same problem from time to time.
I'd suggest you to upgrade to Qt Creator 17.0.1 and if the problems still exist, create a bugreport at bugreports.qt.io/QTCREATORBUG (please create a link to the report from here). When you create a report, you might be requested to append the debugger log, which is at Views > Views > Debugger Log.
Regards
-
Thank you for your suggestion. Unfortunately, the problem remains with QtCreator 17.
But looking at the debugger log, the issue seems to be a timeout due to a breakpoint in a header file. Moving the breakpoint to a .cpp file solves the issues.
I'll file a bug report.
-
Link to the bugreport: https://bugreports.qt.io/browse/QTCREATORBUG-33474