Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Unable to debug Qt source in msvc since install Qt SDK
qtnext last edited by
I have installed the Qt SDK (and add after the Qt source in the maintenance tools) . But I can't now debug the Qt source. What do I need to do (I have checked autoexp.dat and it seems it's ok).
What do you mean that you can't debug? I'm asking because you mentioned autoexp.dat which is responsible for pretty-printing, and it's not required for debugging. Do you want to step inside Qt or you just want to see Qt objects structure (for example QString value inside watch)?
Are you sure that you link with proper version of Qt binaries (with debug symbols and probably without optimizations)?
Do you compile your project with debug symbols and without optimizations?
qtnext last edited by
I need to step inside Qt source code. I have installed Qt sdk, Qt source after using maintenance tools. The strange things is that there is no pdb files in QtSDk ? Do I need to manually compile Qt to be able to debug Qt Source code ?
I've just installed 4.6.3 and I have pdb files inside bin directory. Have you downloaded SDK for VisualStudio? I'm not sure but mingw version doesn't have pdb files.
Other thing is that these pdbs are for true debug binaries, so I'm almost sure you need to build your project with strict debug configuration and link with *d4.dll Qt binaries (QtCored4.dll etc.).
It seems I misunderstood you. You used 'Qt SDK' package but I tried 'Qt libraries' package. You're right that QtSDK doesn't have pdb files, so I don't see other possibility than build debug version by yourself. Sorry I gave you misleading clue.
koahnig last edited by
[quote author="qtnext" date="1317988986"]I need to step inside Qt source code. I have installed Qt sdk, Qt source after using maintenance tools. The strange things is that there is no pdb files in QtSDk ? Do I need to manually compile Qt to be able to debug Qt Source code ? [/quote]
Is it possible to install the sdk for msvc? If you copuld not make this choice, than this is your problem.
You need to have the Qt libs compiled for the proper version of msvc, otherwise you will have problems.