QT6 QtCreator starts wrong debugger
-
What is the full path of the gdb debugger listed when you view the Kit settings? Is it the one that was packaged with the compiler? You can see which debugger starts when you start debugging an application by opening the 'Debugging Logs' window. From QtCreator's menu: View ->Views->Debugger Log. One of the first few lines will list the debugger executable.
-
Maybe this is part of the problem. When I open the 'Debuggers' tab in the kit viewer, I see several versions of the debuggers available:
How do I make sure the right one is the default?
Thanks for the tip about the debugger log, I did not know about that. But sure enoguht the debugger being activated is cdb, not gdb:dStart parameters: 'QT60DataAcq' mode: 1
dABI: x86-windows-msys-pe-64bit
dLanguages: c++
dExecutable: C:\Users\Ken Beck\Documents\QtPractice\QT60DataAcq\bin\QT60DataAcq.exe
dDirectory: C:\Users\Ken Beck\Documents\QtPractice\QT60DataAcq\bin
dDebugger: C:\Program Files\Windows Kits\10\Debuggers\x64\cdb.exe
dProject: C:\Users\Ken Beck\Documents\QtPractice\QT60DataAcq
dAdditional Search Directories:
dSysroot: -
@nekkceb said in QT6 QtCreator starts wrong debugger:
How do I make sure the right one is the default?
No need to make one of them default. You need to make sure the correct debugger is selected in the Kit.
-
Well, I thought it was setup that way. Here is an image that I think verifies I am connected to the correct kit:
And if I go into the kit manager, I do see that it seems gdb is the debuigger, AND ther isnot even a way to change that...
What am I missing??
-
OK, I changed to Creator ver 6.0.1. Why did Qt version 6.0.4 ship with an older version of QtCreator (4.15.0)?
BTW it took a while to get ver 6.0.1 setup correctly -- I had to create a new session for the project (the old session would not let me change to Qt 6.0.4), then in the manage kits, the Qt 6.0.4 had the debugger set to CDB, so I changed it to the minGW -- the ver 4.15.0 said the debugger was gdb, but it also had no other choice. -
@nekkceb said in QT6 QtCreator starts wrong debugger:
Why did Qt version 6.0.4 ship with an older version of QtCreator (4.15.0)?
How did you install Qt? Online installer usually installs latest QtCreator version. If you already had a Qt installation, then you probably did not update it.
-
I thought I picked QtCreator for install, here is the path to QtCreator in that install:
C:\Pgms\Qt\Qt6.0.4\Tools\QtCreator\binHere is screen shot of the Configure Project and Helpbout for Qt 6.0.4, showing QtCreator 4.15.0
BTW I do have several versions of Qt installed, usually I only have one, but I am trying to move several projects incrementally from Ver 5.15.2 through 5.15.8 and finally into Qt 6.
-
-
Yes, I always have the installer give me the latest QtCreator. And after your suggestion, I downloaded just QtCreator Ver 6.0.1 and installed it in its own folder. That is what ultimately fixed my issue with the debugger. But now I have 4 QtCreators, one associated with Qts 5.15.2, 5.15.8 and 6.0.4 and finally the C:\Pgms\Qt\qtcreator-6.0.1 in its own folder. Interestingly, the one associated with Qt 5.15.2 reports 4.13.2, with Qt 5.15.8 it is 5.0.3. Odd that I ended up with an intermediate version with Qt 6.0.4! Once I get this conversion project done, I will clean things up.
-
@nekkceb A QtCreator version is not assotiated with a Qt version. What you probably mean is the Qt version which was used to build QtCreator itself (which is a Qt application), but that has nothing to do with Qt version you're using to build your applications. You can use many different Qt versions with same QtCreator installation.
I don't know why you have so many QtCreator installations. If I use Qt online installer and then Qt maintanence tool I always have one QtCreator which is updated using Qt maintenance tool.