Visual Studio2010 加载windows符号表

调试dll的过程中,经常遇到一些莫名其妙的十六进制系统dll地址,提示no symbol for .....
visual studio可以设置符号表地址,不过是从微软的符号表服务器来下载的,速度比较慢
于是想到安装win7的符号表
地址 https://msdn.microsoft.com/en-us/windows/hardware/gg463028.aspx#_Installation_Instructions
根据说明,没什么特殊情况选择retail版
安装win7的符号表之后,如何让visual studio本地加载呢?
方法是设置_NT_SYMBOL_PATH环境变量,之后就会在visual studio里看到这个选项了,windbg也会自动感知这个环境变量
参考 https://technet.microsoft.com/zh-cn/scriptcenter/hh439330(v=vs.90).aspx
Setting Symbol and Executable Image Paths in Visual Studio
The procedures shown in this topic require that you have the Windows Driver Kit integrated into Visual Studio. To get the integrated environment, first install Microsoft Visual Studio, and then install the Windows Driver Kit (WDK). For more information, see Windows Driver Development.
Setting the Symbol Path by Using a Property Page
On the host computer, in Visual Studio, choose Options from the Tools menu.
In the Options property box, navigate to Debugging>Symbols.
If you want to get symbols from a Microsoft symbol server, check Microsoft Symbol Servers.
If you want to get symbols from folders on the host computer, check Environment Variable: _NT_SYMBOL_PATH. Then set the _NT_SYMBOL_PATH environment variable.
Setting the Symbol Path by Entering a Command
In Visual Studio, in the Debugger Immediate Window, enter the .sympath (Set Symbol Path) command.
Setting the Executable Image Path by Entering a Command
In Visual Studio, in the Debugger Immediate Window, enter the .exepath (Set Executable Path) command.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

嘉诩

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值