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

后端 未结 8 1850
春和景丽
春和景丽 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:23

    There could be an exception while executing the instruction in question. Try enabling all exceptions to break into debugger and check.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题