> For the complete documentation index, see [llms.txt](https://jen-hsuan-hsieh.gitbook.io/debugging-tools-experience/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jen-hsuan-hsieh.gitbook.io/debugging-tools-experience/422chu-cuo-gong-ju/chapter3-windbg/32she-ding-project-ji-symbol-path.md).

# 5.2.2.設定project及symbol path

* 1.設定Visual studio 專案
  * 1.專案Property -> Linker -> input -> Additional Dependencies: 加入Dbghelp.lib
  * 2.專案Property -> Linker -> Debugging -> Generate Debug Info -> Yes (/DEBUG)
  * 3.專案Property -> Linker -> Debugging -> Generate Map File -> Yes (/MAP)
* 2.設定WinDbg的symbol path
  * 1.打開File -> Symbol Path

    ![](https://github.com/jenhsuan/debugging-tools-experience/tree/91ad7a157f155ea77065c5600800bb4627bd1ae2/assets/螢幕快照%202017-06-15%20下午5.47.42.png)
  * 2.在Symbol Search Path中輸入srv*c:\cache*<http://msdl.microsoft.com/download/symbols>; , 要注意c:\cache路徑下要有編譯完的map file與pdb file

    ![](https://github.com/jenhsuan/debugging-tools-experience/tree/91ad7a157f155ea77065c5600800bb4627bd1ae2/assets/螢幕快照%202017-06-15%20下午5.48.12.png)
* 3.開啟dmp file
  * 1.開啟dmp file: File -> Open Crash Dump

    ![](https://github.com/jenhsuan/debugging-tools-experience/tree/91ad7a157f155ea77065c5600800bb4627bd1ae2/assets/螢幕快照%202017-06-15%20下午5.53.51.png)
  * 2.進一步[分析dmp file](https://jenhsuan.gitbooks.io/debugging-tools-experience/content/chapter3-windbg/33fen-6790-dmp-file.html)
