5.2.2.設定project及symbol path
Last updated
Was this helpful?
Last updated
Was this helpful?
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
2.在Symbol Search Path中輸入srvc:\cachehttp://msdl.microsoft.com/download/symbols; , 要注意c:\cache路徑下要有編譯完的map file與pdb file
3.開啟dmp file
1.開啟dmp file: File -> Open Crash Dump
2.進一步分析dmp file