-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging locally with snupkgs is difficult #8809
Comments
I don't think the debugger is really set-up to consume snupkgs from local NuGet feeds. Where was the snupkg when you tried debugging from another machine? //cc @rrelyea @loic-sharma @cristinamanum for help on this topic. |
Consuming snupkgs from local feed is not supported. @chilakamarthi do you pack the pdbs in the nupkg as well?
If the answer to step 1 is No, the nupkg and snupkg needs to be published to nuget.org. |
This was working in Feb. I could debug and pdb was loaded, extracted into temp folder and code was shown. Even at that time, I was publishing my nuget packages to network path. I was trying to demo it to my team and realized its not working anymore. |
@chilakamarthi is it possible that your Symbol sources changed between now and previous time it worked? We don't currently have NuGet capability of publishing snupkgs to a local feed, nor can they be directly consumed outside of a symbol server. So my guess is that you were at one time loading PDBs from a symbol server that you don't have setup today. |
I am pretty sure we did it from network share. We did demo to our customer in Sweden and they were happy to see working solution for the problem. verifying the location, I have the path defined there in the list of sources to my network location. And here is the link to issue where its discussed: |
That would be so awesome to not have to put the .snupkg on a Symbol server. I use artifactory I can distribute the .nupkg to my client and internally, but I wan to debug them internally without packaging them for the clients. If we could load the symbols package from a web source (with auth) or from a local folder at least, that would be great. |
Are there plans to implement this? I have a local nuget folder that I put development versions of shared libraries in, I need to be able to load snuget packages from there along with their nuget packages so I have debug symbols. |
Stumbled randomly here but I wonder if the option "Enable Just My Code" should not be "Unchecked" instead of "Checked". |
Does this still not work? How can we use symbol packages without having to set up a dedicated server for that? |
This feature would be very nice for local development of packages and package consumers, the workarounds are all a bit fragile. We can build locally and consume from a local package source, it makes sense and would be very convenient if snupkg files could work exactly the same. |
I've also ran into this issue trying to debug an external library from nuget. I had to restart visual studio to get the debugger to work because when VS tried to load the .pdb's from a local folder it complained that there was a version mismatch (which there shouldn't have been). After restarting it debugs correctly. |
I am working with Rrider on a MAUI app and I have not been able to debug the external libraries with local snupkg. Also adding PDB information and sources
directly to NuGet package did not help. |
Hi,
I am using:
Visual Studio 2017 Version: 15.9.17
Nuget Version: 5.3.1
My UWP App project file got following settings in "Debug|AnyCPU" and "Debug|[Specific Platform]"
I am using nuspec file to customize my requirement:
Package command used is:
nuget pack DebugNuget2017.nuspec -Symbols -SymbolPackageFormat snupkg
I copied my nupkg and snupkg file to network path.
On another machine Visual Studio 2017 Debug settings in Options:
With same settings when I tried debugging nuget package on another machine, it use to download DebugNuget2017.pdb folder and show source code. But now it is not working and debug does not step into source code. Did I miss any point?
I even tried with Visual Studio 2019 and still could not debug nuget package. Am I missing any critical settings?
The text was updated successfully, but these errors were encountered: