Reputation: 3449
I had compiled Qt 4.6.2 from sources with VS 2008. Now I would like to be able to step into Qt sources while debugging my application. How do I make VS to pick up the framework sources?
I forgot to mention that qt was built statically, and I don't find any .pdb files anywhere. I believe that all the necessary data should be included in the debug .lib files?
Upvotes: 1
Views: 3147
Reputation: 11636
Did you compile the debug version of Qt ? To do so, you need to give -debug or -debug-and-release arguments to the configure step. I believe that even for static version, you will get pdb files.
Upvotes: 1
Reputation: 11648
From your question,
I belive that all the necessary data should be included in the debug .lib files?
No need at all. There should not be any dlls or libs associated with Qt since you have the source files itself.
Say for example you want to step through QWidget
.
So in the cpp
file you will use like,
QWidget *trialWidget = new QWidget();
Now what you have to do is, you have to include the header file
for QWidget
(qwidget.h
I guess) and the cpp
file for QWidget
(qwidget.cpp
in that case).
Make note that, all the other classes that might be needing in the qwidget.h
should also be included. Say for e.g qobject.h
for QObject
.
In this way you are replacing the dlls and libs with the source code itself, so that you can step into the Qt
code available in the corresponding cpp
files.
Hope it helps..
Upvotes: 1
Reputation: 1821
Make sure the .pdb
file for your Qt assembly is in your bin directory, alongside the .dll
, and you should be able to step into the source.
Upvotes: 0