Skip to content
十二月 1, 2010 / wychi

建立 Symbol/Source Server 2


Here is the summary of those two articles.

To index source, you have to correctly set up several  system variables.

D:\p4\SDK\Sync\Main\Installation>p4 info

User name: wenyuanchi ==> influence by P4USER

Client name: tpe-wychi_MLE2

Client host: tpe-wychi

Client root: d:\p4 ==> influence by P4CLIENT

Current directory: d:\p4\SDK\Sync\Main\Installation

Client address:

Server address: tpe-p401:1960 ==> influence by P4PORT

Server root: D:\Perforce\

Server date: 2010/11/18 19:29:50 +0800 Taipei Standard Time

Server version: P4D/NTX64/2007.3/152469 (2008/04/24)

Proxy version: P4P/NTX86/2007.3/140107 (2007/11/20)

To index source, you can use this command.

%WinDBG%\\srcsrv\\p4index.cmd" -source=PATH_TO_SRC -symbols=PATH_TO_SYMBOL


To see if the PDB is indexed, you can use this command.

%WinDBG%\\srcsrv\\pdbstr" -r -p:YOUR_PDB.pdb -s:srcsrv

Use symbol/source server in WinDBG

You have to add SRV* to symbol/source path to let WinDBG know you want to access symbol/source server. Typically, the syntax takes the following format:

SRV*your local folder*{symbol server URI}

Command in WinDBG:

.sympath SRV*c:\cached_symbols*;c:\pdbs

.srcpath SRV*c:\cached_source;c:\mysource


If you don’t specify local folder for source server, the source code will be downloaded to default location.

Default download source location

  • VS2008 ==> C:\Users\wenyuanchi\AppData\Local\SourceServer
  • WinDBG ==> C:\Program Files\Debugging Tools for Windows (x86)\src


In addition, to use source server, you also need to provider “srcsrv.ini” for WinDBG/VS2008 to get the source code.

  • VS2008 ==> C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
  • WinDBG ==> C:\Program Files\Debugging Tools for Windows (x86)


Related registry:

HKEY_CURRENT_USER\Software\Microsoft\Source Server\Warning








在下方填入你的資料或按右方圖示以社群網站登入: Logo

您的留言將使用 帳號。 登出 /  變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 /  變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 /  變更 )


您的留言將使用 Facebook 帳號。 登出 /  變更 )


連結到 %s

%d 位部落客按了讚: