Export (0) Print
Expand All

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 gain access to the Code Center Premium Web site

  1. Execute the appropriate Shared Source Initiative Program license agreements with Microsoft. (See http://www.microsoft.com/resources/sharedsource/Licensing/default.mspx.)

  2. Obtain Code Center Premiums credentials and a smart card from Microsoft. (See http://www.microsoft.com/resources/sharedsource/ccp/premium.mspx.)

  3. Install the Code Center Premium software on your computer.

To set up Code Center Premium

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

  2. Read the Installation Guide and follow the instructions.

To debug Code Center Premium source

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

  2. Launch Visual Studio.

  3. On 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, type a location where Code Center Premium can cache symbols, as show in the following example:

    c:\symbols

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

  7. Open your project in Visual Studio.

  8. In Solution Explorer, right-click the solution name and choose Properties.

  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. To locate the source code location, open Internet Explorer and:

    1. Browse to https://codepremium.msdn.microsoft.com.

    2. From that page, locate the appropriate summary page for the source code you want to debug.

    3. Copy the source location URL from the summary page to the Directories containing source code box in the Visual Studio debugger. The location you enter should resemble this sample:

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

  11. Click OK.

  12. When you begin debugging Code Center Premium source, a dialog box prompts you to enter the SmartCard personal identification number (PIN). Enter the PIN you received with the Code Center Premium Welcome Kit.

    The debugger now downloads the Code Center Premium source.

    For supplemental debugging information and instructions, see the Code Center Premium site.

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 computer. You can change this location by editing a registry key.

Caution noteCaution

The Registry Editor is an advanced tool for viewing and change settings in your system registry, which affects how your computer runs. Although the Registry Editor enables you to inspect and modify the Registry, in most situations, you do not need typically to do this. Making incorrect changes to the registry can break your system. Do not edit the registry unless it is absolutely necessary. If there is an error in your registry, your computer might not function correctly. Before making changes to the registry, always back up the registry files and any valuable data on your computer. If there is an error in the registry and your computer stops functioning correctly, you can restore the registry to its previous state by starting the computer and then choosing the Last Known Good Configuration option when it restarts.

To change the default local directory for Code Center Premium source

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

  2. At the Windows Command Prompt, type:

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

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

  5. Edit the Value data to contain the name of the local directory. The Value data is initially an empty string.

    If you change your Visual Studio IDE settings, you might have to repeat this process. IDE settings are changed by the Import/Export Settings on the Tools menu or by starting Visual Studio with the /resetsettings option. When you change the IDE settings, Visual Studio caches and uses the new settings during the current session. When you exist Visual Studio, the new settings are written to the registry.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft