Visual Studio 2022缺少“启用.NET Framework源代码”选项。

4

1
我有一种感觉,“启用仅限我的代码”选项已经继承了该选项,但我找不到任何确切的来源来证实。我认为你仍然需要确保从微软符号服务器下载了符号,但在配置完成后,我想知道你是否能够调试框架代码。 - Timothy G.
1
这应该是个问题,我建议你回到之前的版本,并向VS社区报告情况。我还提供了一个避免这个问题的方法,看看我的答案。 :) - Bowman Zhu-MSFT
已在UserVoice中提交回归问题 https://developercommunity.visualstudio.com/t/Visual-Studio-2022-enable-net-framewor/10396521 - Mark Nadig
https://developercommunity.visualstudio.com/t/Enable-NET-Framework-source-stepping/10372238?q=%22enable+.net+framework+source+stepping%22 - Hans Passant
2个回答

3

他们更新了文档,说明如何启用源代码调试:

重要的新步骤是第2步。

  1. 在“工具”(或“调试”)> “选项”> “调试”> “符号”下,选择“Microsoft符号服务器”。

按照这些步骤操作后,在VS 17.6+中应该可以正常工作。


0
我在我的一边进行了测试,能够重现相同的情况。

enter image description here

我还查看了VS2022的发布说明,似乎没有与此相关的更新。

https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-notes#1762--visual-studio-2022-version-1762

下面是一个可以帮助您避免这种情况的解决方案:

访问VS2022企业和专业版本发布历史

下载17.5.4版本替代:

enter image description here

我测试过了,这个版本包含了你要求的部分。

enter image description here

如果您希望17.6版本有此部分,我建议您在此处报告问题。

https://developercommunity.visualstudio.com/VisualStudio/suggest?


在UserVoice上提交了回归问题 https://developercommunity.visualstudio.com/t/Visual-Studio-2022-enable-net-framewor/10396521 - Mark Nadig
在UserVoice上提交了回归问题 https://developercommunity.visualstudio.com/t/Visual-Studio-2022-enable-net-framewor/10396521 - undefined

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接