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

后端 未结 8 880
暗喜
暗喜 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:00

    Make sure that you're in Debug mode not in Release.

    0 讨论(0)
  • 2021-02-13 01:03

    It almost sounds like you have the default settings for your debugging. If you go to: Tools
    - Options - Debugging Under the general section there is a option to "Enable Just My Code" By default that is checked, if you uncheck that you should be able to step into the code that you want to see.

    Without knowing more about your project and code that you reference, this is my best guess as to why you can’t step into the code.

    Hope it helps Rihan

    0 讨论(0)
  • 2021-02-13 01:06

    Without knowing more about your application it's difficult to say, but usually this sort of thing happens when the process starts a thread or otherwise goes into code where there isn't any debug information.

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

    0 讨论(0)
  • 2021-02-13 01:15

    It might be stepping over the last executing code in the thread or somehow it's going back to the UI thread. If it's a GUI app, try doing something that invokes an event handler and see if it breaks on the next execution.

    0 讨论(0)
  • 2021-02-13 01:17

    It is probably because you do not have the update kb 957912 for Visual Studio 2008. That fixed the same issue on my machine.

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