Why does Visual Studio 2008 skip over my break points?

前端 未结 13 2182
旧巷少年郎
旧巷少年郎 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:59

    I guess you changed your project to optimized code, so, no debug information is available (including the ability to use breakpoints).

    To correct this: open your project, click on menu->project->(your_project) properties..., click on compile tab, click on advanced compile options, then: - unselect "enable optimizations" - in generate debug info list, choose "full". - Click OK, close and save everything. Should work now.

    MFR>

提交回复
热议问题