为什么 PDB 文件不复制到模块目录
几个月前,我在调试远程编写的服务时遇到了问题。我将所有内容发布到正确的目录。无论怎样,当我尝试附加时,调试器告诉我缺少 pdb 文件(显然不是那么多字)。所以我所做的是,我进去查看丢失的模块。查找我的服务器上的特定目录,然后将 pdb 直接从 bin 文件复制到该目录即可。有谁知道为什么我必须这样做?
谢谢。
A couple of months back I was running into an issue debugging a service I wrote remotely. I publish everything to the correct directory. Some how or the other, when I attempt to attach, the debugger tells me that I am missing a pdb file (not in so many words obviously). So what I do is, I go in and look a the missing modules. Look for the specific directory on my server, and just copy the pdb directly from the bin file to that directory. Does anybody know why I have to do that?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在 Visual Studio 的发布模式下构建 dll 或应用程序,则不会获得 pdb 文件。尝试在调试模式下构建 dll,您将获得 pdb 文件。
you don't get the pdb file if you build your dll or application in release mode of visual studio.try building the dll in debug mode you will get the pdb file.