Reputation: 4516
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).
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.
What is the cause of this behavior?
Upvotes: 0
Views: 119
Reputation: 4516
I solved the problem :)
Solution Explorer ->
Right click on the solution ->
Properties ->
Build ->
Advanced button ->
Debug Info: <change from none to pdb-only>
Upvotes: 1