Breakpoint not hooked up when debugging in VS.Net 2005

后端 未结 12 1408
庸人自扰
庸人自扰 2020-12-09 23:38

Been running into this problem lately... When debugging an app in VS.Net 2005, breakpoints are not connected. Error indicates that the compiled code is not the same as the

12条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-10 00:12

    In the past I have sometimes found that switching off compiler optimisations can solve 'missing' breakpoints, as the optimiser had determined (correctly) that the code was not being called, and removed them from the compiled versions.

    This does sound like a different issue, but it might be worth making sure that optimisation is switched off in Debug mode. [Project / Properties, Build settings tab]

提交回复
热议问题