使用dll,pdb文件和源调试VS C ++ [英] Debug in VS C++ with dll, pdb files and source

查看:245
本文介绍了使用dll,pdb文件和源调试VS C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关pdb文件的问题。是否在Visual Studio中调试pdb文件?如果是这样,为什么它们也存在于我的Release文件夹中?这是正常的pdb文件在Debug文件夹,但为什么他们也在Release文件夹。

A question about pdb file. Is pdb file for debugging in Visual Studio? If so, why do they also exist in my Release folder? It's normal that pdb files are in Debug folder, but why they are also in Release folder.

所以我现在有一个版本文件夹由集成团队与所有的pdb文件。现在我可以加载所有相应的源(在GIT中),所以我确定二进制文件对应于源。那么我需要重新构建才能在Visual Studio中进行调试?如果没有,为了快速完成事情,我必须做些什么?

So I have now a Release folder build by Integration team with all the pdb files. Now I can load all the corresponding source (in GIT) so I'm sure that the binaries correspond to the source. Then do I need to build again in order to debug in Visual Studio? If not, what I have to do in order to get thing done quickly?

推荐答案

如上所述,PDB是非常重要的作为发行二进制文件!一旦软件被释放,你可以调试它(取决于公共和私人符号是否可用)。如果PDB包含私有符号,请记住,这些描述您的代码(参数,类型,返回值,符号...)。 这里有一篇文章解释可执行文件和其PDB之间存在的逻辑链接。

As mentioned above, PDBs are as much important as release binaries! Once a software is released, you can debug it afterwards (depending on whether public and private symbols are available). Should the PDBs contain private symbols, please keep in mind that these describe your code (parameters, types, return values, symbols...). Here an article explaining the logical link that exists between an executable and its PDBs.

这篇关于使用dll,pdb文件和源调试VS C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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