How to step into the Qt source code (Qt 5.15.2 / Windows) ?
-
Hello.
I already tried to follow some instructions like the ones here:
https://stackoverflow.com/questions/44734160/i-cant-step-into-qt-source-code-on-windows
I have downloaded the source code and those "debug information files" which are like 13GB in size.
My Qt version is 5.15.2 MSVC2019
Apart of setting these paths (in case they are correct), what more should I do?
Anybody can point me into the right direction?
Thank you very much.
-
@Alvein Have you tried enabling this option
To get "the source path in the debug information of the executable as reported by the debugger", you can activate the "Use Tooltips in Stack-View when Debugging" option by right-clicking in the Stack View and move the mouse over a specific function call.
Even though thread is old, yesterday user posted accepted answer working fine in Qt creator version 4.14.1 (not sure about mingw/msvc build)
He has installed the sources when installing Qt via the online installer
-
@Bonnie said in How to step into the Qt source code (Qt 5.15.2 / Windows) ?:
For MSVC kits, set CDB paths in Qt creator.
Set them to what?
@nagesh said in How to step into the Qt source code (Qt 5.15.2 / Windows) ?:
@Alvein Have you tried enabling this option
I don't need to see tooltips. I need to get the source code, not a disassembly.
Even though thread is old, yesterday user posted accepted answer working fine in Qt creator version 4.14.1 (not sure about mingw/msvc build)
And that didn't work and that's why I created this question.
He has installed the sources when installing Qt via the online installer
See my attached pics.
-
@Alvein said in How to step into the Qt source code (Qt 5.15.2 / Windows) ?:
Set them to what?
Add Qt bin folder (where the .pdb files are located) to Symbol Paths.
If you want to step into some plugins' source code, also need to add those plugin folders (because their .pdb files are not located in the bin folder). -
@Bonnie That made it.
I just needed the c:/users/qt/work/qt target, though.
And no CDB paths at all.I'm pretty sure I used the Add Qt sources button before, but ATM, IDK (and IDC) about what happened.
Thank you very much!
I've been on this for a long while.