If I go to Configuration Manager and set the Configuration field to "Debug" and hit F5, the breakpoints are not hit. (these are breakpoints in the first line of the Main() method).
如果我转到Configuration Manager并将Configuration字段设置为“Debug”并按F5,则不会触发断点。 (这些是Main()方法第一行中的断点)。
If I set the Configuration field to "Release" and run the app the breakpoints are hit.
如果我将配置字段设置为“释放”并运行应用程序,则会触发断点。
I also noticed that when I run the Debug build, the breakpoints are hit only if I select Target x86 or x64, but not when I select ANY CPU.
我还注意到,当我运行Debug构建时,仅当我选择Target x86或x64时才会触发断点,但是当我选择任何CPU时则不会。
What is the cause of this behavior?
这种行为的原因是什么?
1 个解决方案
#1
1
I solved the problem :)
我解决了问题:)
Solution Explorer ->
Right click on the solution ->
Properties ->
Build ->
Advanced button ->
Debug Info: <change from none to pdb-only>
#1
1
I solved the problem :)
我解决了问题:)
Solution Explorer ->
Right click on the solution ->
Properties ->
Build ->
Advanced button ->
Debug Info: <change from none to pdb-only>