Skip to content
February 26, 2011 / windperson

Process Explorer設定顯示Thread分頁的debug symbol

  1. 下載並安裝Windows SDK裡面的Debugging Tools for Windows:
    DebuggingToolsForWindows
  2. 建立一個空的目錄,這裡用C:\symbols\當作例子。
  3. 在Process Explorer的[Options]\[Config Symbols]視窗,第一個『Dbghelp.dll Path』指定成第一步驟安裝的Windows Debugging Tools目錄下的dbghelp.dll,第二個『Symbols Path』填入下面字串:
    srv*c:\symbols*http://msdl.microsoft.com/download/symbols
    ConfigSymbols

附註:
  1. 萬一symbol不能正常自動下載,請增加一個系統變數_NT_SYMBOL_PATH值為srv*c:\symbols*http://msdl.microsoft.com/download/symbols;Vista之後的OS可以直接在有管理者權限的command line下這個指令:
    setx _NT_SYMBOL_PATH "srv*c:\symbols*http://msdl.microsoft.com/download/symbols" /M
  2. Symbols Path其實可以和Visual Studio的[Options]\[Debugging]\[Symbols]所指定的Symbol Cache是同一個目錄(反正都是從M$的symbol server下載那堆*.pdb的,目錄的內容結構都一樣)。image

reference:
http://www.solsem.com/lab-setup.html

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: