Visual Studio调试器中的符号是什么? [英] What are the symbols for in Visual Studio debugger?

查看:178
本文介绍了Visual Studio调试器中的符号是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我重新编译代码时,Visual Studio调试器都在寻找符号,这会花费很长时间,尤其是当我重新启动应用程序时,它必须从Microsoft重新加载它服务器。这些符号是否必要?如果不是如何禁用它或使重新编译调试更快?

Every time I recompile my code Visual Studio debugger is looking for symbols it takes very long especially when I restart the app it has to load it all over again from the Microsoft server. Are the symbols necessary ? If not how to disable it or make the recompilation for debugging quicker ?

推荐答案


符号是否必要?

Are the symbols necessary ?

符号仅允许Visual Studio调试器将地址映射到函数名称。

Symbols simply allow Visual Studio debugger to map addresses to function names.

PDB文件包含Symbol&线路信息。当您构建项目时,将生成PDB文件。
您可以通过更改Visual Studio设置来选择不包含PDB文件。

PDB file contains Symbol & line information. PDB file is generated when your build your project. You can opt for no PDB file by changing Visual Studio settings.

没有PDB,您的程序堆栈跟踪将如下所示

without PDB your program stack trace would look like this

0x00002130

使用PDB

0x00002130 yourprogram!function

Microsoft还构建了OS库的调试版本,例如KERNEL,GDI等,它们是 Windows调试符号。有时,程序员需要Windows调试符号来调查运行时错误。例如BSOD错误。 Microsoft促进了从服务器上的调试符号下载。

Microsoft has also built debug version of OS libraries such as KERNEL, GDI, etc., those are Windows debug symbols. Sometimes programmers need Windows debug symbols to investigate runtime errors. e.g. BSOD errors. Microsoft facilitates debug symbols download from their server.

@Hans建议您如何关闭设置。

@Hans suggested how you can turn off the settings.

这篇关于Visual Studio调试器中的符号是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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