3

I'm following the instructions from MS on how to enable debugging .net framework source here https://learn.microsoft.com/en-us/visualstudio/debugger/how-to-debug-dotnet-framework-source?view=vs-2022

Debug->Options does not have a "enable .net framework source" option.

Microsoft Visual Studio Enterprise 2022 (64-bit) - Current Version 17.6.2

enter image description here

What am I missing? Thanks!

Mark Nadig
  • 4,901
  • 4
  • 37
  • 46
  • 1
    I have a feeling that the "Enable Just My Code" option has inherited the option, but I can't find any concrete source saying so. I think you'd still have to make sure you have the symbols downloaded from Microsofts symbol server, but after configuring that, i wonder if you'll then be able to debug into the framework code. – Timothy G. Jun 17 '23 at 13:51
  • 1
    This should be an issue, I suggest you to back to the previous version and report the situation to VS community. I also provide a way to avoid this issue, see my answer. :) – Bowman Zhu-MSFT Jun 19 '23 at 09:34
  • Submitted regression in UserVoice https://developercommunity.visualstudio.com/t/Visual-Studio-2022-enable-net-framewor/10396521 – Mark Nadig Jun 20 '23 at 16:55
  • https://developercommunity.visualstudio.com/t/Enable-NET-Framework-source-stepping/10372238?q=%22enable+.net+framework+source+stepping%22 – Hans Passant Jul 29 '23 at 13:50

2 Answers2

2

They updated the documentation on how to enable source debugging:

The important new step is 2.

  1. Under Tools (or Debug) > Options > Debugging > Symbols, select Microsoft Symbol Servers.

After following those steps it should work in VS 17.6+.

ENIAC
  • 813
  • 1
  • 8
  • 19
Splamy
  • 21
  • 1
  • 7
0

I tested it on my side and I am able to reproduce the same situation:

enter image description here

I also checked the release note of the VS2022 and it looks like no updates related to this:

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

Here is a solution that can help you avoid this situation:

Go to VS2022 release history of enterprise and professional

Download 17.5.4 instead:

enter image description here

I tested and this version has the section you required:

enter image description here

If you want 17.6 version to have this section, I suggest you report issue here:

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

Bowman Zhu-MSFT
  • 4,776
  • 1
  • 9
  • 10
  • Submitted regression in UserVoice https://developercommunity.visualstudio.com/t/Visual-Studio-2022-enable-net-framewor/10396521 – Mark Nadig Jun 20 '23 at 16:55