如何使用PDB文件 [英] How do I use PDB files

查看:292
本文介绍了如何使用PDB文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说过使用PDB文件可以帮助诊断发生崩溃的位置。

我的基本理解是你给Visual studio的源文件,pdb文件和崩溃信息(从Watson博士?)

有人可以解释一切如何工作/涉及什么?
(谢谢!)

I have heard using PDB files can help diagnose where a crash occurred.
My basic understanding is that you give Visual studio the source file, the pdb file and the crash information (from Dr Watson?)
Can someone please explain how it all works / what is involved? (Thank you!)

推荐答案

PDB文件是在构建项目时生成的。它们包含与Visual Studio可以解释的构建的二进制文件相关的信息。

PDB files are generated when you build your project. They contain information relating to the built binaries which Visual Studio can interpret.

当程序崩溃并生成崩溃报告时,Visual Studio能够获取该报告和链接它通过应用程序的PDB文件回到源代码。 PDB文件必须由生成崩溃报告的同一个二进制文件构建!

When a program crashes and it generates a crash report, Visual Studio is able to take that report and link it back to the source code via the PDB file for the application. PDB files must be built from the same binary that generated the crash report!

我们在一段时间后遇到了一些问题。

There are some issues that we have encountered over time.


  • 正在调试崩溃报告的计算机需要将源位于与构建二进制文件的计算机相同的路径上。

  • 构建常常优化到您不能查看对象成员变量的状态。

如果任何人都知道如何击败前者,感谢一些输入。

If anyone knows how to defeat the former, I would be grateful for some input.

这篇关于如何使用PDB文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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