Getting a Method's Return Value in the VS Debugger

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

    You can always switch to disassembler view and step through the individual instructions. The return value will be in @eax (or @rax) just before you execute the 'ret' instruction.

提交回复
热议问题