2009年3月7日 星期六

Symbol Server

1. 安裝Apache

2. 打開httpd.conf做一些設定
設定DocumentRoot
DocumentRoot "d:/Apache2.2/htdocs"
設定Directory 權限
<directory "d:/Apache2.2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</directory>
然後在DocumentRoot裡建一個子資料夾Symbol

3. 安裝Debugging Tools for Windows

4.使用symstore
利用Debugging Tools for Windows裡的symstore,把Project的debug symbol存在symbol server

symstore add /r /f d:\samplecode\release\*.pdb /s D:\Apache2.2\htdocs\symbol /t "SampleProject" /v "1.0.1001" /c "Sample add"

OK,到現在,我們有一台HTTP 的symbol server,裡面有我們的debug symbol,接下來當我們要Debug時,只要指定這台symbol server就可以了。

設定WinDbg的symbol server


srv*c:\websymbol*http://192.168.0.4/symbol

第一個星號之後是指定下載下來的symbol要放在那裡,第二個星號是指定我們的symbol server

沒有留言:

張貼留言