What are the symbols for in Visual Studio debugger?

偶尔善良 提交于 2019-12-13 01:29:16

问题


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 ?


回答1:


Are the symbols necessary ?

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

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.

without PDB your program stack trace would look like this

0x00002130

with PDB

0x00002130 yourprogram!function

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 suggested how you can turn off the settings.



来源:https://stackoverflow.com/questions/27607547/what-are-the-symbols-for-in-visual-studio-debugger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!