http://msdn2.microsoft.com/en-us/library/ms164729.aspx

나중에 windows 소스 볼 수 있게 되면 참조해야쥐..

Visual Studio Debugger  
How to: Debug With Code Center Premium Source  

With the Visual Studio debugger, you can debug secure shared source from Microsoft MSDN Code Center Premium.

This topic explains how to set up and debug Code Center Premium source code in Visual Studio.

To set up code center premium
Insert your Code Center Premium card into the SmartCard reader attached to your computer.

Insert the Code Center Premium Welcome Kit CD into your CD-ROM drive.

If the disc does not autorun, locate and run the install file:

Welcome Kit CD\Source Code\CDROM_FILES\install.exe

To browse Code Center Premium source, launch Internet Explorer and enter:

https://codepremium.msdn.microsoft.com

Browse to find the source code you want.

To debug code center premium source
Specify a local directory for the Code Center Premium secure shared source, as described below.

Launch Visual Studio.

From the Tools menu, choose Options.

In the Options dialog box, open the Debugging node and select Symbols.

In the Symbol File Locations box, add the following location:

https://codepremium.msdn.microsoft.com/symbols

In the Cache symbols from symbol servers in this directory box, enter a location where Code Center Premium can cache symbols. For example:

c:\symbols

If you have previously cached symbols in the same location, you may not need to clean out the cache, which may contain older versions of the symbols without Code Center Premium information.

Open your project in Visual Studio.

In Solution Explorer, right-click on the solution name and choose Properties from the shortcut menu.

In the Solution Property Pages dialog box, open the Common Properties node and select Debug Source Files.

In the Directories containing source code box, add the Code Center Premium source code location. You can locate the source by browsing https://codepremium.msdn.microsoft.com in Internet Explorer, then copying the location from your Internet Explorer address bar.

The location you enter should look like this:

https://codepremium.msdn.microsoft.com/Source/windows XP/SP1

(This example is for Windows XP SP1 source code.)

Click OK.

When you begin debugging Code Center Premium source and the debugger enters break mode, a dialog prompts you to enter the SmartCard PIN number.

Enter the PIN number you received with the Code Center Premium Welcome Kit.

The debugger downloads the Code Center Premium source.

Specifying the Local Directory for Code Center Premium Source
Before you can debug Code Center Premium secure shared source, you must specify a local directory for the source on your machine. You can change this location by editing a registry key.

To change the default local directory for code center premium source
Exit Visual Studio, if it is currently running.

From the Windows Command Prompt, enter:


regedt32
In the Registry Editor window, open: HKEY_CURRENT_USER\Software\MSFT\VisualStudio\8.0\Debugger

In the Name column, double-click on SecureSourceLocalDirectory.

Edit the Value data (initially an empty string) to the location you want to use as a local directory.

If you change your Visual Studio IDE settings, you may need to repeat this process.

See Also
Concepts
Debugger Security

Other Resources
Debug Settings and Preparation

+ Recent posts