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.
- Add breakpoint
- Hit F5 on your project
- Break point doesn't get hit
In Debug | Windows | Breakpoints you see
Figure: The breakpoint will not currently be hit. No symbols have been loaded for this document.
Check the solution configuration to be "Any CPU" (which means x64)
Figure: Solution configuration that can be found by doing a right click on your Visual Studio 2010 solution
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
I update this once we know…
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