在Windows上从Qt Creator进入Qt源(不是从源代码构建) [英] Step into Qt Sources from Qt Creator on Windows (NOT built from source)

查看:912
本文介绍了在Windows上从Qt Creator进入Qt源(不是从源代码构建)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了一个为MSVC9 / VS2008构建的Qt4的二进制版本。

I have downloaded a binary build of Qt4 that is built for MSVC9/VS2008. I installed it from a setup file, I have NOT built it from source.

但是,我的源代码位于:

However, I do have the sources located at:

c:\QtSDK\QtSources\4.8.1\src:

我也有PDB文件位于:

I also have PDB files located at:

c:\QtSDK\Desktop\Qt\4.8.1\msvc2008\lib

所以如果我同时拥有

注意:我可以从源代码中创建源代码已经找到,并阅读一些问题,询问如何进入Qt源,但他们是(实际上也是我的),或者它们不指定是否从源代码编译(非常重要的区别)。

Note: I've already found and read some questions asking how to step into Qt sources, however they are either about Linux (that one's mine as well, actually), or they don't specify whether it's compiled from source or not (a very important distinction).

推荐答案

我打开了一个PDB文件 - c:\QtSDK\Desktop\Qt\4.8.1\msvc2008\lib\QtCored4.pdb - 在十六进制编辑器中,找到这些描述文件路径的字符串:

I opened one of the PDB files - c:\QtSDK\Desktop\Qt\4.8.1\msvc2008\lib\QtCored4.pdb - in a hex editor and found these strings describing file paths there:

c:\iwmake\build_vs2008_opensource_________________PADDING_________________\src\network\vc90.pdb

所以我添加了一个映射使用Tools-> Options-> Debugger - >添加Qt源:

So I added a mapping using Tools->Options->Debugger->Add Qt Sources:

它的工作,我现在可以进入Qt源:)

It's working and I can step into Qt Sources now :)

请记住路径可能与您不同,因此您必须检查您的PDB文件以找到要映射的内容。

Keep in mind the path might be different for you, so you'll have to inspect your PDB files to find what to map.

这篇关于在Windows上从Qt Creator进入Qt源(不是从源代码构建)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆