Configuring your system to use Artifactory as your Symbol Server requires the following main steps:
To enable you to step into and debug your source files, your debugger needs the corresponding .pdb
files and searches for them in the following order until they are found:
So to fully support this search order, you need to specify the Symbol Server URL in your debugger.
Under Tools | Options | Debugging | Symbols enter http://msdl.microsoft.com/download/symbols
You need to configure your build machine to publish your .pdb
files into a known directory which is later used in your IIS configuration.
Assuming you are using TFS, and want to publish your .pdf
files into a directory called Builds/symbols,
your build definition would look something like the below:
Create the following repositories:
Repository name | Description/Instructions | |
---|---|---|
microsoft-symbols-IIS | A Remote repository. Set the repository URL to point to the virtual directory configured in your IIS below. (For the example on this page we will use | |
microsoft-symbols | A Remote repository. Set the repository URL to point to the Microsoft Symbol Server URL: | |
symbols | A virtual repository. Configure this repository to aggregates the other two repositories, resolving from microsoft-symbols-IIS first. Once configured, this repository will aggregate all the NuGet packages with symbol (.pdb) files.
|
The Artifactory Symbol Server Plugin listens for requests for symbol files and then redirects them to the Microsoft Symbol Server.
Download the Artifactory Symbol Server Plugin from GitHub and install it in your $ARTIFACTORY-HOME\etc\plugin
directory.
To ensure that the plugin is loaded, check that your If you do modify this system property, you need to restart Artifactory for this modification to take effect. |
To configure your Internet Information Services (IIS) machine, you need to
.pdb
files reside.pdb
files.To add a virtual directory on your IIS, execute the following steps:
C:\build\symbols
To define a MIME type so that your IIS associates the .pdb
file extension with Symbol files, execute the following steps:
Click Add… on the right side of the window fill in the fields as follows:
Field | Value |
---|---|
File name extension | .pdb |
MIME type | application/octet-stream |
Before you configure Visual Studio, you need to remove the symbol cache located under C:\Users\Administrator\AppData\Local\Temp\1\SymbolCache
Once you have removed the symbol cache, you need to change the location of the symbol (.pdb
) file. Under Tools | Options | Debugging | Symbols add a new symbol server pointing to the symbols virtual directory you defined in Artifactory above.
This should be http://tfs::8081/artifactory/symbols
Note that there is no way to set the path directly to Artifactory since the symbol server cannot take a URL as a path. |