Crashing somewhere in Qt... how to... eee get src?
-
If you installed Qt via the installer, you can use the MaintenanceTool to install the 'Qt Debug Information Files' for the version you are using. Note, you should also go back in the stack trace to see the last line of your code that was being executed before the crash occurred; it's more than likely that you have a bug in your code.
-
@mchinand Hey
I agree, its definitely something I did. But there is no log at bottom that leads me to my issue. So I must have pushed it on thread and then banana happen.If I run QtCreator, how can I point to these files so I can see Qt source log/breakpoints? Do I need to download source too ?
Regards
Dariusz -
Yo
Ok I'm having another stab at it... I'm on Clion atm & both QtCreator/clion fail to dive in to qt sources when debugging, duh. In any case, I had a bit more luck latelly.
My Cmake copies QT dlls to my exe folder, but it did not copy pdb, now I copy pdb and I can see a little more data, yay! But no source... so I started to add src to my project, but not sure if that is the way, currently going with >
include_directories(${QT_PATH}src/qtbase) include_directories(${QT_PATH}src/qtbase/src/) include_directories(${QT_PATH}src/qtbase/src/widgets) include_directories(${QT_PATH}src/qtbase/src/widgets/widgets) include_directories(${QT_PATH}src/qtbase/src/gui) include_directories(${QT_PATH}src/qtbase/src/gui/kernel) include_directories(${QT_PATH}src/qtbase/src/corelib) include_directories(${QT_PATH}src/qtbase/src/corelib/thread)
I'm thinking of writing recursive folder include for my cmake project & point it at cmake src dir and let it loose. This is probably the wrong way of doing it ?
Maybe >
https://gist.github.com/Asher-/617872 -
Why should including directories (which are even included already indirectly by linking against the appropriate Qt libs) should help anything during debugging? Strange idea...
The debugger needs to know where the sources are - how you tell them is debugger specific and can maybe done via the IDE but I don't know CLion. -
@Christian-Ehrlicher I've no idea :D But it did not work.
When I pause debug, I get symbols/etc but it says that symbols are different from source file... so I have to manually navigate to cpp file in qt/src/bla/bla/bla dirFeels like msvc DLL shipped with Qt does not match src that I can install... maybe I should build my own qt so that everything is definitely running one ver... odd.
Still digging.