How do I create and use a symbol server?

♀尐吖头ヾ 提交于 2019-12-04 10:13:52

问题


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 !


回答1:


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!




回答2:


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.




回答3:


Just define it at Options->Debugging->Symbols->Symbol file (.pdb) locations

Detailed instructions on MSDN



来源:https://stackoverflow.com/questions/10043147/how-do-i-create-and-use-a-symbol-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!