When debugging, I would like to see objects value shown inline as you stepping through each line of code. I've seen this feature in some of my colleagues VS but I could not find any option to turn it on.
5 Answers
Visual Studio cannot do that by itself.
What you have most likely witnessed is the new Resharper feature. If your colleagues have this, there is a good chance your company will provide it for you, too. Don't hesitate to ask your manager for a licence, it's a great tool and will make you more productive.
(Disclaimer: I'm in no way affiliated with the company. I just think they have a great product.)
Comments
I think there are not any free Visual Studio extension to archieve that. There is one called "Entrian Inline Watch" by Entrian Solutions - Richie Hindle, but it is a paid extension.
You can download the trial version for Visual Studio 2022 from this link: Entrian Inline Watch For VS2022
And also for Visual Studio 2015, 2017 and 2019 from this link: Entrian Inline Watch For VS 2015, 2017, 2019
Keep in mind that the trial only lasts 30 days.
Comments
The inline hint is a new feature in Visual Studio 16.8. But we have to enable it manually.
- Go to Tools in the top bar, then click on options.
- Go to Text Editor in the left menu, and expand it.
- Then go to C# Expand it, and go to advanced.
- Now in the right-side options go to section Editor help.
- Enable "Display Inline Parameter name hints (experimental)".
3 Comments
- Expand the Tools bar in the top bar
- Open the Options, which are the last item in this bar
- Open the Debugging Options in the left bar
- Scroll to the bottom in the right bar
- Find the checkbox for
Show variable values inline in editor while debuggingand check it if unchecked
This should do it!
Comments
In the menu, go to:
Debug -> Windows -> Output
