Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create and use a symbol server?

I created a powershell script that gets all the pdb files from the drop location after the build is set to release and copies them to a folder that is shared on the network.

I also created a sample application and I added the nuget packages that contain the assemblies that I need (without the pdb files).

I found some references on the net, but I was unable to debug my assemblies using the pdb files. I am using a VPN connection to connect to the shared folder that contains the pdb files and Visual Studio 2010.

What are the exact steps that I need to make in order to use the pdb files that are shared on the network to be able to debug the assemblies that I get using nuget package manager?

Thanks !

like image 523
lex87 Avatar asked Apr 06 '12 11:04

lex87


People also ask

How do you start a WinDbg?

Launch Notepad and attach WinDbg On the File menu, choose Open Executable. In the Open Executable dialog box, navigate to the folder that contains notepad.exe (typically, C:\Windows\System32). For File name, enter notepad.exe. Select Open.

How do I create a .PDB file in Visual Studio?

In a developer command prompt, you can use the mspdbcmf.exe tool to generate a full PDB from this limited PDB. In Visual Studio, use the Project or Build menu items for generating a full PDB file to create a full PDB for the project or solution.


2 Answers

If you are looking for a good overview of symbols, Symbol Server, and more importantly Source Server indexing, check out http://bit.ly/SymbolServerTFS which is a blog post I wrote a while back talking about all of them. I specifically talked about it in terms of using Team Foundation Server but it's good information even if you aren't using TFS.

Also, if you want to make this experience better, please vote for my feature request on Uservoice: http://bit.ly/AtLSjl We definitely would appreciate the added voices & votes!

like image 74
Ed Blankenship Avatar answered Sep 21 '22 04:09

Ed Blankenship


You could try, as a simple solution, VS/Tools/Options/Debugging/Symbols - and try set your symbols cache to your network share (haven't tried this before but might work, map drive etc. if needed).
At least that could get you running temporarily - and make sure you have automatically load for 'all modules' or specify yours.
hope this helps some.

like image 27
NSGaga-mostly-inactive Avatar answered Sep 24 '22 04:09

NSGaga-mostly-inactive