gpt4 book ai didi

pdb-files - 生成 DLL 后是否可以(重新)创建 PDB 文件

转载 作者:行者123 更新时间:2023-12-02 19:03:47 27 4
gpt4 key购买 nike

我有 DLL,并且有用于创建 DLL 的确切源代码。当我们从客户那里获得转储文件时,我希望我们的本地符号服务器能够工作。 (在我们产品的下一个补丁/版本之前无法在客户站点更新 DLL)

最佳答案

这似乎是不可能的。看看这里:Why does Visual Studio require debugger symbol files to exactly match the binary files that they were built with?

或者这篇文章:PDB Files: What Every Developer Must Know

引自“PDB 文件:什么......”:

The extremely important part is how the debugger knows this is theexact matching PDB file for this binary. That's done through a GUIDthat's embedded in both the PDB file and the binary. If the GUID doesnot match, you certainly won't debug the module at the source codelevel.
The .NET compiler, and for native the linker, puts this GUID into thebinary and PDB. Since the act of compiling creates this GUID, stop andthink about this for a moment. If you have yesterday's build and didnot save the PDB file will you ever be able to debug the binary again?No! This is why it is so critical to save your PDB files for everybuild. Because I know you're thinking it, I'll go ahead and answer thequestion already forming in your mind: no, there's no way to changethe GUID.

关于pdb-files - 生成 DLL 后是否可以(重新)创建 PDB 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8430820/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com