I want to step into Qt source code to see how some of its functions work. But I can't step into the Qt source code.
What I've tried:
- Tools - Options - Debugger - General - Add Qt sources... - select Qt source folder (
D:\Qt\Qt5.14.1\5.14.1\Src
, which is installed along with installation of Qt 5.14.1) - Tools - Options - Debugger - CDB Paths - Insert Symbol Server... - click OK with default value.
- new project with code:
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel l;
l.show();
return app.exec();
}
- add breakpoint at
l.show()
. - start debugging
and still can't step into the Qt function QLabel::show()
.
What had I missed ?
Thanks a lot.
Environment:
Windows 10
Qt 5.14.1 with MSVC 2017
Microsoft Visual Studio 2019