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

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

问题描述

我听说使用 PDB 文件可以帮助诊断崩溃发生的位置.
基本的理解是,您向 Visual Studio 提供源文件、pdb 文件和崩溃信息(来自 Dr 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天全站免登陆