Windbg学习 (0x0001) 安装与基本配置
1.安裝
根據微軟MSDN官方建議,有三種方式安裝Windbg,摘要如下:
3 ways to get Debugging Tools for Windows
- As part of the WDK
Install Microsoft Visual Studio and then install the Windows Driver Kit (WDK). Debugging Tools for Windows is included in the WDK. You can?get the integrated environment here.
- As part of the Windows SDK
Install the Windows Software Development Kit (SDK). Debugging Tools for Windows is included in the Windows SDK. You can?get the Windows SDK here.
- As a standalone tool set
If you want to download only Debugging Tools for Windows,?install the Windows SDK, and, during the installation, select the?Debugging Tools for Windows?box and clear all the other boxes.
我采取的方式為:下載Windows SDK ,安裝過程中,只勾選Debugging Tools for Windows。
?
2.配置
2.1.Workspace
工作空間定義了以下內容:
窗口布局,調試符號文件路徑,斷點,打開的文件,別名等自定義信息
Windbg有一些默認工作空間,也可以根據自己的習慣,調整配置后另存工作空間。相關菜單如下?
?
?
?
?
可以通過這些菜單,執行打開已有的工作空間,另存等操作。
?
?
?2.2 符號文件配置
?可以通過菜單設置符號文件
?
SRV*E:\Symbol\Online*http://msdl.microsoft.com/download/symbols;E:\Symbol\MySymbol
?上述符號文件定義:SRV*E:\Symbol\Online*http://msdl.microsoft.com/download/symbols 指的是在線符號文件(http://msdl.microsoft.com/download/symbols?),下載緩存到本地目錄(E:\Symbol\Online)
以及自己編譯生成的符號文件放在本地路徑(E:\Symbol\MySymbol)
關于符號文件,可以通過這篇博客了解:
http://www.cnblogs.com/itech/archive/2011/08/15/2136522.html
英文版出處?
http://www.wintellect.com/devcenter/jrobbins/pdb-files-what-every-developer-must-know
?
轉載于:https://www.cnblogs.com/ywnwa417/p/5675097.html
總結
以上是生活随笔為你收集整理的Windbg学习 (0x0001) 安装与基本配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ueditor1_4_3_3编辑器的应用
- 下一篇: Volley框架使用及源码解析