Why does F10 (step over) in Visual Studio not work?

后端 未结 8 875
暗喜
暗喜 2021-02-13 00:29

I\'m debugging a (web) project in Visual Studio 2008. I\'m hitting a breakpoint. F10 continues to the next line, as expected, but the next F10 just stops debugging and the code

8条回答
  •  误落风尘
    2021-02-13 01:06

    F10 is Step Over. This means that any methods called by your current method will not be shown in the debugger. If these throw an uncaught exception or somehow end execution, debugging will just end, which would result in what you are experiencing.

    F11 (Step Into) is usually a better idea when stepping through code.

提交回复
热议问题