John Smith
John Smith

Reputation: 4516

in VS 2005 what does it mean when breakpoints are not hit when debugging a Debug build?

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

Answers (1)

John Smith
John Smith

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

Related Questions