visual-studio-debuggingvisual-studio-2022diagnostics

VS2022: "Diagnostic Tools" window no longer appears during debugging, can't bring it back


I must have fat-fingered something to turn it off, but when I try to run any c# project (.net 6 windows wpf, or even just a commandline application) in debug mode, I no longer see the Diagnostic Tools window. This is the thing that displays a real-time chart of memory consumption and other things.

I've been trying to re-enable Diagnostic Tools but so far haven't been able to do it. I can run in debug mode, everything else seems normal, I can add breakpoints etc. What could have gone wrong?

This is so perplexing!

Looking at the docs (Measure Performance While Debugging), it says...

The Diagnostic Tools window appears automatically unless you have turned it off. To bring up the window, click Debug / Windows / Show Diagnostic Tools (or press Ctrl + Alt + F2).

Here's what I tried:

Show Diagnostic Tools -- not there!

VS search for "Diagnostic Tools" There is no "Enable Diagnostic Tools when debugging" option

tools>>options>>debugging

The solution

The next step WOULD HAVE BEEN to uninstall VS 2022 and re-install it.


Solution

  • In order to be able to show the diagnostics tools window you need to have the .NET net profiling tools installed.

    To add this to an existing VS installation go to Control Panel > Programs and Features and change the VS program entry. Then tick the .NET profiling tools checkbox in the installer.

    Now you should be able to show the diagnostics tools in VS studio via Debug > Windows > Show Diagnostic Tools.