Why would Visual Studio 2010 say it can't show a variable during debug?

后端 未结 2 1601
走了就别回头了
走了就别回头了 2021-01-18 11:19

In Visual Studio 2010 sometimes when I want to get the value of a variable while debugging, it tells me that it \"does not exist in

相关标签:
2条回答
  • 2021-01-18 11:51

    Is GetListOfFileNames() deferring execution? Try tacking .ToList() on it.

    0 讨论(0)
  • 2021-01-18 12:06

    Hazarding a guess..

    Could it be that your running in Release mode and the variable has been optimized out? Once you actually use the value, then it no longer can optimize the value out?

    0 讨论(0)
提交回复
热议问题