Skip to content
十二月 1, 2010 / wychi

建立 Symbol/Source Server 2

Reference:

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: 192.168.12.15:3031

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*http://msdl.microsoft.com/download/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

 

 

 

 

 

發表迴響

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

WordPress.com Logo

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

Twitter picture

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

Facebook照片

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

Google+ photo

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

連結到 %s

%d 位部落客按了讚: