Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
277 views
in Technique[技术] by (71.8m points)

c# - Variable are not visible while debugging under VS 2019: What am I doing wrong?

I'm using Visual Studio 2019 (Professional Edition, Version 16.8.4).

While I'm debugging a specific C# project, the local variables don't appear under the Locals window, also they don't display in the Immediate Window, same if I hover over them in the code view.

  • I've been reading the following question1, question2
  • My code is compiled in Debug Mode
  • I've turned on the Use Managed Compatibility Mode
  • I've disabled JIT debugging for Managed Code
  • UPDATE: I have reset my C# settings in Tools => Import & Export Settings

But still, the local variables (hrt,t,T) don't show up.

Same issue for my teammates on different machines.

Nothing show on the Locals and Immediate windows

enter image description here

Same for the Watch and Autos Windows :

enter image description here

Any suggestions ?

question from:https://stackoverflow.com/questions/65858201/variable-are-not-visible-while-debugging-under-vs-2019-what-am-i-doing-wrong

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...