Cannot obtain value because it has been optimized away

后端 未结 4 723
鱼传尺愫
鱼传尺愫 2021-02-07 11:50

I have a problem with debugging... All of a sudden I can\'t see the values of most variables while debugging. I\'ve managed to get two different messages in the Immediate Window

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 12:45

    Go to -> Project Properties -> under Build -> set "Optimize Code" checkbox Unchecked.

    Also, Under Project Properties -> Build -> Advanced -> set the "Debug Info" dropdown to "Full" in the Options

提交回复
热议问题