Unable to step into Qt source files with Qt Creator and CDB
-
I have just installed Qt with Qt Creator on Windows 7 x64 using the pre-compiled package “Qt 5.1.1 for Windows 32-bit (VS 2010, OpenGL, 504 MB)” because I have Visual Studio 2010 32-bit installed already.
Qt Creator complained about missing debugger so I installed the Debugging Tools for Windows part of the Windows 7.1 SDK. This installed the x64 versions. I then restarted Creator and it now automatically detected CDB and my default Kit was complete.
Starting a program in debug mode worked, but if I use Step Into on a line that calls into Qt code, it seems to behave as if I pressed Continue, i.e. the program just starts running again. Stepping into a function that's part of the project seems to work fine.
I read somewhere that I needed the 32-bit CDB to work with a 32-bit Creator so I tracked this down and installed it. Created a new kit by cloning the default one and changed the location of CDB to point to the 32-bit one. But it had no effect on the debugging behaviour.
I'm seeing some messages like the following in the debugger log:
*** ERROR: Symbol file could not be found. Defaulted to export symbols for J:\Qt\Qt5.1.1\5.1.1\msvc2010_opengl\bin\Qt5Widgetsd.dll -
But I can't find any documentation about how to configure Qt Creator and CDB to find all the correct symbols and sources. The complete debugger log can be found here:
https://dl.dropboxusercontent.com/u/4084480/qt_creator_cdb_debugger_log.txt
This log corresponds to launching the Application example with a breakpoint on line 50 of main.cpp ("QApplication app(argc, argv);") and then pressing Step Into after it stopped. The app then resumed running.
Any pointers appreciated.
-
I found the solution here in the workaround mentioned in the last post:
http://qt-project.org/forums/viewthread/24430/#113139
I also needed to add the following entry under Options > Debugger > CDB Paths > Symbol Paths:
J:\Qt\Qt5.1.1\5.1.1\msvc2010_opengl\lib