Getting a Method's Return Value in the VS Debugger

前端 未结 8 1704
迷失自我
迷失自我 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:10

    You can also highlight any expression in the debugger and right-click -> quick watch. That will execute the expression (assuming it's valid) and give you the value.

提交回复
热议问题