什么是PDB的(程序调试数据库)的使用情况如何? [英] What is the usage of pdb's (Program Debug DataBase)?

查看:172
本文介绍了什么是PDB的(程序调试数据库)的使用情况如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编译库或应用程序(例如,在Visual Studio IDE中控制台应用程序),在应用程序的Debug文件夹中,除了该.dll或.exe,将有一个更多的文件扩展名为.PDB 。

When compiling a library or an application (e.g a Console Application in the Visual Studio IDE), in the Debug folder of the application, apart from the .dll or .exe, there will be one more file with extension ".pdb".

这样做有什么确切的使用.PDB文件?

What is the exact usage of this .pdb file?

推荐答案

PDBS包含调试符号,这样你就可以出货已编译的二进制给您的客户不会暴露你的源代码,算法和其他私人资料给他们。

PDBs contain debugging symbols, so you can ship a compiled binary to your customer without exposing your source code algorithms and other private details to them.

如果您的应用程序出错的一个客户的网站,你可以从他们(使用DrWatson)得到一个崩溃转储,把它带回您的开发工作站和调试崩溃,调试器将使用符号结合文件的崩溃给你看的源代码,数据结构等等。在许多情况下,你所要做的就是打开崩溃转储和调试器将直接带您到异常的源代码,并显示您的变量和线程了。

If your app goes wrong on a customer site, you can get a crash dump from them (using DrWatson), bring it back to your dev workstation and debug the crash, the debugger will use the symbols file in conjunction with the crash to show you the source code, data structures etc. In many cases, all you have to do is open the crash dump and the debugger will take you directly to the source code of the exception, and show you variables and threads too.

这是主要的利用起来,他们是非常宝贵的,当客户报告崩溃。的事情,你需要了解,虽然使用它们 - 它们仅适用于创建它们的身材,所以如果你重新编译,你的符号文件旁边是毫无价值的。

That's the primary use of them, they're invaluable when a customer reports a crash. The things you need to know about using them though - they are only valid for the build that created them, so if you recompile, your symbols file is next to worthless.

约翰罗宾斯有一个很好的文章为什么你会使用它们。

John Robbins has an excellent article why you would use them.

这篇关于什么是PDB的(程序调试数据库)的使用情况如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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