无法在加载了符号的情况下进入 Nuget 库 [英] Unable to Stepinto Nuget library with Symbols loaded

查看:20
本文介绍了无法在加载了符号的情况下进入 Nuget 库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 Nuget 库上传到 Azure Devops Artifacts.它还具有发布到 Azure Devops 符号服务器的符号文件 (.PDB).我在我的 Visual Studio 中添加了设置,以按照提到的说明从 Azure Devops 符号服务器加载符号

2.在 Visual Studio 中,添加新的符号服务器(拥有管道并托管工件提要的组织):

3.Uncheck enable only my code in debug=>general:

然后它在我这边运行良好.希望我的步骤有所帮助.有关此主题的更多信息,您可以参考 此博客.

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.

解决方案

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.

这篇关于无法在加载了符号的情况下进入 Nuget 库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆