Quaz
Quaz

Reputation: 89

Locals window empty (Visual Studio 2015)

I was working on a project just like usual. I run it and check my Locals window only to see it empty. I tried restarting VS and then my computer but it was without success. I tried opening another project and it didn't have that issue. I googled and came across many threads with similar issues. Most of them were VS 2008 or 2010 however.

I reinstalled Visual Studio 2015 only to find that all projects (that I checked (7)) have the same issue. I emptied the symbol cache, changed debugging and other settings as was suggested in some of the answers in other threads but all attempts have failed.

My Locals window:

enter image description here

General debugging settings:

enter image description here

If there's anything else I can grab a screenshot of that would help I'll gladly do so.

Upvotes: 2

Views: 5395

Answers (2)

user16249963
user16249963

Reputation: 21

Try typing:

.natvisreload

followed by the Enter key within the Debugger Immediate Window.

Upvotes: 2

Jack Zhai
Jack Zhai

Reputation: 6436

To view variable in the local window, add a breakpoint in your project, you could view it after the breakpoint is hit.

For the issue "Cannot find or open the PDB file", please enabled "microsoft symbol servers" under the TOOLS-> Options-> Debugging-> Symbols.

Upvotes: 0

Related Questions