I used the QtSDK installer and I definitely have the source files (under C:\QtSDK\QtSources\4.8.0\src). See here for how I installed the Qt SDK.
I used the QtSDK installer and I definitely have the source files (under C:\QtSDK\QtSources\4.8.0\src). See here for how I installed the Qt SDK.
I am using 4.8.1 SDK and Qt Creator 2.5, so things may be a little bit different for you...
This works for me:
1) install Debugging Tools for Windows
2) in Qt Creator: Tools > Options > Debugger > Source Paths Mapping - add:
Source path: c:\iwmake\build_vs2010_opensource_________________ PADDING_________________
Target path: c:\QtSDK\QtSources\4.8.1
I found source path by looking for some "path-like" strings in PDB files under c:\QtSDK\Desktop\Qt\4.8.1\msvc2010\lib.
I personally use Qt 4.8.0 with Qt Creator 2.4.1.
I already had them installed so that I could debug using CDB using Qt Creator.
Ok, I thought I would look for PDB files under c:\QtSDK\Desktop\Qt\4.8.0\msvc2010\lib, but couldn't find any.
I use Qt SDK so I decided to double check what is the latest version of Qt and Qt Creator which comes with it. The Update Qt SDK program tells me that there are no updates available, yet the website says that the latest version of Qt SDK comes with Qt 4.8.1, and indeed if I decide to maintain (rather than update) my copy of Qt SDK, then I can see that Qt 4.8.1 is available (hmm... so much for the Update Qt SDK program!).
Anyway, I have upgraded my copy of Qt to version 4.8.1 and I can now see some PDB files. So, there is already a difference between Qt 4.8.0 and Qt 4.8.1...
Next, I did what you suggested, but unfortunately for me, it doesn't work in my case (I mean, I tried to trace into the QApplication code using the 'mainwindow' Qt demo, but to no avail). Maybe it's related to my using Qt Creator 2.4.1 while you use version 2.5?...
I tried Qt Creator 2.4.1 and it works too...
Can you start debugging, hit some breakpoint and then:
1) open Window > Views > Debugger Log
2) execute !lmi QtCored4 command?
I get:
Loaded Module Info: [qtcored4]
Module: QtCored4
Base Address: 000000006d670000
Image Name: C:\QtSDK\Desktop\Qt\4.8.1\msvc2010\lib\QtCored4.dl l
Machine Type: 332 (I386)
Time Stamp: 4f619340 Thu Mar 15 07:59:12 2012
Size: 449000
CheckSum: 445fcf
Characteristics: 2102
Debug Data Dirs: Type Size VA Pointer
CODEVIEW 74, 39664c, 39544c RSDS - GUID: {D9B88246-65E9-4B48-8C50-AA74663B223F}
Age: 1, Pdb: c:\iwmake\build_vs2010_opensource_________________ PADDING_________________\lib\QtCored4.pdb
Symbol Type: DEFERRED - No error - symbol load deferred
Load Report: no symbols loaded
Maybe image name is different?
Ok, I have just tried what you suggested and I got the exact same result except for the base address, as well as... a space before "PADDING" in your version of the source path. In my comment above (#10), I used your version (with the space) which is the reason things were not working for me. Now, I am using the version (without a space before "PADDING") and everything works as expected. So, thanks a lot for following up on my issue. Much appreciated!
PS: the issue with the space before "PADDING" is the forum's fault: it is it which added a space!
Bookmarks