Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

  1. Insert your Code Center Premium card into the SmartCard reader attached to your computer.

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

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

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

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

    https://codepremium.msdn.microsoft.com

  5. Browse to find the source code you want.

To debug code center premium source

  1. Specify a local directory for the Code Center Premium secure shared source, as described below.

  2. Launch Visual Studio.

  3. From the Tools menu, choose Options.

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

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

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

  6. 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.

  7. Open your project in Visual Studio.

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

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

  10. 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.)

  11. Click OK.

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

  13. 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

  1. Exit Visual Studio, if it is currently running.

  2. From the Windows Command Prompt, enter:

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

  4. In the Name column, double-click on SecureSourceLocalDirectory.

  5. 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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.