调试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.
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.