在VS 2005中调试Debug构建时没有遇到断点是什么意思?

时间:2012-11-27 23:00:50

标签: c# .net visual-studio debugging breakpoints

如果我转到Configuration Manager并将Configuration字段设置为“Debug”并按F5,则不会触发断点。 (这些是Main()方法第一行中的断点)。

如果我将“配置”字段设置为“发布”并运行应用程序,则会触发断点。

我还注意到,当我运行Debug构建时,仅当我选择Target x86或x64时才会命中断点,但是当我选择任何CPU时,断点都不会被命中。

这种行为的原因是什么?

1 个答案:

答案 0 :(得分:1)

我解决了问题:)

   Solution Explorer ->
   Right click on the solution ->
   Properties ->
   Build ->
   Advanced button ->
   Debug Info: <change from none to pdb-only>