Variable does not exist in the current context while debugging

前端 未结 5 1156
春和景丽
春和景丽 2020-12-29 21:58

I inserted two temp variables and want to see their values, but I can\'t. I could solve it by placing it somewhere else, but I\'m interested why this behaviour exists.

5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 22:33

    If you are trying to debug in a release build (release mode instead of debug mode), you'll get this error. Change your solution configuration to Debug (Any CPU) and you'll be able to see variable values in the immediate window.

提交回复
热议问题