Visual Studio breakpoints not being hit

Solved. Ended up being an incorrect configuration selected in the debug menu. I had mistakenly switched it to a release configuration that could not load the symbols for the document. Switched it to a debug configuration and the breakpoints hit just fine now. To add on to what Abacus mentioned below, it could also be … Read more

Get “Internal error in the expression evaluator” on “Add watch” function when trying to debug WCF service code (MSVS 2013)

This might be a bug in the new (managed) debug engine that ships with Visual Studio 2013. Try turning on Managed Compatibility Mode (which effectively turns it into pre-2013 debug engine), located under Tools – Options – Debugging: If this solves the issue, then I’d suggest trying to reproduce it with a small project, and … Read more

Can I find out the return value before returning while debugging in Visual Studio?

Not that I know of. Note that if you do add a variable, it will get removed by the compiler in release builds anyway… Update: This functionality has been added to VS2013. You can see the return values in the autos windows or use $ReturnValue in the watch/immediate window. The value can only be seen … Read more