Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using nuget & Symbols servers

I must be doing it wrong.

I am using VS2012, c#. I am using nuget to manage my packages. Previously I always created an 'External References' directory and managed packages myself. I decided to now follow the new way of package management.

Anyway, nuget is working a treat. I have it setup so that packages are not included in svn (code repository) and that missing packages get downloaded if required. All works, for all developers on my team and also on our Team City box.

Problem comes when I want to debug one of these packages (ie step into the package source). I have setup VS2012 for symbol source download as per this link. But when I run the solution and want to step into package code, VS2012 gives me a blank look and says cant find symbols. In Fiddler I can see a whole bunch of 404s.

I was expecting the symbols of the packages I reference from nuget to be downloaded and then allow me to step in and debug. Or do I have to download the source manually and point Vs2012 to it - like I used to do it when doing manual package management?

Am I making sense?

like image 565
ozczecho Avatar asked Feb 08 '13 02:02

ozczecho


People also ask

What is a NuGet package and what is it used for?

NuGet is a package manager that delivers compiled source code (DLLs) and other files (scripts and images) related to code. A NuGet package takes the form of a zip file with the extension . nupkg. This makes adding, updating, and removing libraries easy in Visual Studio applications.

Is NuGet free to use?

NuGet's client, nuget.exe is a free and open-source, command-line app that can both create and consume packages.


1 Answers

It depends on the developer that builds the said package, that is, not all package authors provide symbols.

Package authors can create and publish a symbol package as per the docs:

Creating and Publishing a Symbol Package

Then what's left is just add a new symbol source in Visual Studio debugger configuration (see here for detailed instructions):

http://srv.symbolsource.org/pdb/Public
like image 75
Leniel Maccaferri Avatar answered Oct 02 '22 22:10

Leniel Maccaferri