Getting a Method's Return Value in the VS Debugger

前端 未结 8 1712
迷失自我
迷失自我 2020-12-15 19:46

Is it possible to get a method\'s return value in the Visual Studio debugger, even if that value isn\'t assigned to a local variable? For example, I\'m debugging the follow

8条回答
  •  青春惊慌失措
    2020-12-15 20:12

    The answer of similar question out there: In VS 2013, you can add the variable $ReturnValue to the watch. It contains the actual return value from a function.

    Credit to Jesper Jensen.

提交回复
热议问题