VS2010 - Debugging not working

We just faced an interesting problem on one of our dev's computers.
He is not able to debug any VS2010 solution: Windows Forms, WPF, Web Forms… There is no chance to debug anything on his 64bit machine.

Problem:

  1. Add breakpoint
  2. Hit F5 on your project
  3. Break point doesn't get hit

In Debug | Windows | Breakpoints you see

The breakpoint will not currently be hit. No symbols have been loaded for this document.
Figure: The breakpoint will not currently be hit. No symbols have been loaded for this document.

 

Our fix

Check the solution configuration to be "Any CPU" (which means x64)

Change

clip_image004
Figure: Solution configuration that can be found by doing a right click on your Visual Studio 2010 solution

to

clip_image006
Figure: Change it to be "Any" platform, If there is no "Any CPU" in the list, you have to add a new entry

 

We couldn't figure out yet why on each "File -> New Project" this is the default Sad smile 
I update this once we know…

 

 

image
BTW: I am big opponent of debugging as you may know. I try to write as much tests as possible in order to avoid time wasted in the debugger.

The only reason that I see in using the debugger is: inspecting state.
More on this in my blog post: Avoid the debugger like the pest

3 comments:

Unknown said...

Encountered the same issue on one of my workmates computer. But there he has accidentally changed the platform settings. But took me a while to understand the problem :)

Anonymous said...

Thank you. It worked for me. -- Roop

Anonymous said...

Thanks its working ..

Post a Comment

Latest Posts

Popular Posts