问题
I have my Nuget library uploaded into Azure Devops Artifacts. It also has the Symbols file (.PDB) published to the Azure Devops symbols server. I have added settings in my Visual studio to load symbols from the Azure Devops Symbols server as well by following the instructions mentioned here.
During the runtime, when I try to StepInto the code (of Nuget library) then I get error saying unable to find the path of the .cs file. I have tried various solutions proposed like Uncheck the Enable Just-in time code, Enable .Net Framework Source Stepping etc. But no luck.
Question is:
- I have build the nuget package using the build configuration as Release. Is that the reason why I m unable to step-into the Code? I thought having a PDB files loaded in VS should help overcome this. Please advise.
回答1:
I have build the nuget package using the build configuration as Release. Is that the reason why I m unable to step-into the Code? I thought having a PDB files loaded in VS should help overcome this.
That's not the reason why you can't step-into the code. It should work even when you're using a nuget package built from Release
mode. Please check these three tips:
1.Make sure you select same settings like mine when using Index sources and publish symbols
task to publish symbols for debugging.
2.In Visual Studio, add new symbol server (the organization which owns the pipeline and hosts the artifact feed):
3.Uncheck enable just my code in debug=>general:
Then it worked well on my side. Hope my steps make some help. More info about this topic you can refer to this blog.
来源:https://stackoverflow.com/questions/60993769/unable-to-stepinto-nuget-library-with-symbols-loaded