Why does Visual Studio 2008 skip over my break points?

前端 未结 13 2121
旧巷少年郎
旧巷少年郎 2020-12-20 22:20

I am running Visual Studio 2008 with SP1. When I debug an application, it will skip over my break points.

For example, I have two lines of code, each call a method.

相关标签:
13条回答
  • 2020-12-20 22:35

    Assuming symbol load is not an issue, you can put a BP on the method itself and verify that it indeed is getting called twice (by examining the call stack).

    0 讨论(0)
  • 2020-12-20 22:42

    If the breakpoint doesn't show up as a solid red bubble, but a red circle then it's disabled. If it's a red circle with a small yellow warning sign then the process(es) you're attached to hasn't loaded the symbols for that mode. Ensure you're trying to debug the correct type of code (Managed/ Native/ T-SQL/ Script).

    0 讨论(0)
  • 2020-12-20 22:45

    For web sites, this can occur if a separate instance of MSVS was runnning the same web site.

    Just stop the original instance or stop IIS Express.

    MSVS seemingly starts the 2nd web site without complaining about the pre-existing one that was running on the same port. Possibly the page shown in the browser is really the 1st web site.

    0 讨论(0)
  • 2020-12-20 22:48

    Try deleting your .SUO file for that project, and then rebuild.

    0 讨论(0)
  • 2020-12-20 22:48

    I had this problem and had to install a hotfix. See http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/f3fcb4fb-8a08-4fa0-8d58-9ed6f3eb1193 for details

    0 讨论(0)
  • 2020-12-20 22:48

    Also, removing run in compatibility mode for VS executable solves the problem.

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