I may very well be the last one to figure this one out, but I always thought that the Edit and Continue option in Visual Studio 2005 and 2008 was a myth. I always made certain that the Enable Edit and Continue check-box was firmly checked, as shown below, but I had never gotten the feature to work.
With that option enabled any time I attempted to alter the code during debug, to add a quick comment or fix a small typo, the dreaded message would pop up, mocking me for not losing that habit.
Only recently I was told that the darn thing works the other way around. I don't know if I'm reading this wrong, but it seems counter-intuitive that un-checking that option enables you to edit the source file during a debug session. I un-checked it and to my shock it worked. I felt that anger of several years of being deprived of that feature boiling inside of me and I had to take a deep breath to avoid a nervous breakdown.
Exaggerations aside, this one goes into my list of why wasn't I told that before along with:
03-29-2008 5:19 PM