I can't stop on breakpoints on 4.8.2
I know it seems to be a quite recurrent question but I tried to check lot of infos about this issue and I'm still looking for a solution (on Windows 10 using QTCreator 4.8.2).
It's QtQuick project with C++ code.
If I look at my project settings, it seems to build with
Desktop Qt 5.12.1 MSVC 2017 64.
So I guess it should use CDB.
CDB for QTCreatorbut it's not detected in
Tools->Options->Kits->Debuggers!?! I can only see:
GNU gdb 8.1 for MinGW 7.3.0 64 bit
Is it normal?
Project Settings->RunI can see it executes
I have the options "CONFIG+=debug" "CONFIG+=qml_debug"
When I try to
Start and Break on Main, it starts but doesn't break on main
But in Debugger console I see messages such as:
Called the itemSlot with value: QVariant(QObject*, QQmlTimer(0x1877a647a60)) ..\test\qml_api.cpp: 22
I can set breakpoints but it doesn't stop.
When I launch my application, I can see:
QML Debugger: Waiting for connection on port 49845...
And then messages from my app. I don't know if I'm supposed to see some response from debugger after the above message !?
So I suppose it may be because I do not use the right debugger but how to do make CDB available?
I've installed CDB for QTCreator
How did you install it?
@jsulm I did it with the Maintenance tool.
@ABponant You can't install CDB with maintenance tool. You need to get "Debugging Tools for Windows/CDB" from Microsoft and install it.
@jsulm ok, I didn't pay attention to that.
So I switched to minGW build and GDB works as expected.
Thanks a lot