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

后端 未结 8 1867
春和景丽
春和景丽 2021-02-13 00:43

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:25

    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.

提交回复
热议问题