Visual studio debug variable not working

ihorvat7 6 Reputation points
2022-04-25T11:54:49.617+00:00

I have some strange issue while debugging.
I tried resetting options, changing debug options. Reinstall multiple times following official documentation

Current options:
196137-image-2022-04-25-135653854.png

When I hover over variable I can't expand variable to see its property values.

First example I can expand till object:
196076-visualstudio-1.png

Second example I can't expand at all:
196153-visualstudio-2.png

Finally in locals are all results from top cases:
196173-visualstudio-3.png

Using Microsoft Visual Studio Professional 2019 Version 16.11.13

Developer technologies | Visual Studio | Debugging
{count} votes

1 answer

Sort by: Most helpful
  1. KobiTS6 0 Reputation points
    2023-01-25T07:11:25.8933333+00:00

    Hi ihorvat7

    I had exactly the same problem ad you described,

    in my case,, the solution was to remove an Inherited Member that was contained in the Class with the debugging showing variables error, this action solves the CS0108 warning error and also solves the debagging problem issue you mentioned

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.