简体   繁体   中英

Visual Studio Watch Window Debugger Displaying Nothing

I was working on my application today, and literally all of a sudden, my debugger just stopped working.

I'm working in Visual Studio 2013. Normally when I debug, I set the breakpoint, and hit f11 to step into, and watch the updated results in what I believe is the watch window. However now it is completely blank. Nothing displays at all.

The program compiles, runs and builds fine, and I have literally been over what seems like most quick fix solutions on the internet. Has anyone else ever had this problem?

EDIT:

Once a breakpoint is set, I can right click a variable and add to watch to debug, but this just isn't convenient. I assume then for some reason it has decided to not add everything to watch by default. Is this an option somewhere in VS?

Turns out Visual Studio had decided not to watch anything in my code when debugging. All I had to do in the end was:

Start a debug, and wait for the breakpoint. Then go to:

Debug -> Windows -> Autos

And they returned!

我遇到了同样的问题,我所缺少的是“调试”>“窗口”>“本地”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM