Edit and Continue on 64 bit Windows
Pascal writes about the joy of x64 Windows XP, and some drawbacks. One drawback is no Edit and Continue using the 64 bit CLR. You can, however, use E&C against the 32 bit CLR on a x64 machine. Here's how you do it:
You need to compile your managed assembly with a target CPU of x86. This will cause the 32 bit CLR to be used rather than the 64 bit CLR.
For a VB Project, right click on the project and go to Properties/Compile/Advanced Compile Options/Target CPU and set it to "x86".
For a C# Project, right click on the project and go to Properites/Build/Platform Target and set it to "x86".
If you want to (or must) use the 64 bit CLR, we unfortunately cannot provide E&C. In C# if you try to edit there is a dialog that tells you edits are not allowed . To prevent the dialog, disable E&C: Tools/Options/Debugging/Edit and Continue, and uncheck 'Enable Edit and Continue'.
Comments
Anonymous
November 15, 2005
I'll bite. Is it E&C "doesn't" work or "can't" work (obviously those are different beasts)? In either case, why it only on the 64bit version of CLR?Anonymous
November 15, 2005
The comment has been removedAnonymous
December 02, 2005
We've done some investigation about enabling EnC in the 64-bit CLR and it's certainly not impossible or impractical. In fact, it's something we'd like to add to the next major version of the CLR. Of course I can't comment on what features we WILL add, but I can say that the more customers ask for a feature, the more likely we are to add it. If 64-bit EnC would be valuable for you, please let us know (MSDN product feedback center, support, and/or with blog comments).Anonymous
December 22, 2005
Because of memory requirements, we have no choice but to run our ETL engine on 64 bit machines. We have a long initialization period which enables the runtime application to run very quickly. The problem is that we have to go through the initialization time each time a small change is noticed while debugging. Just mentioning it as another client or would greatly benefit from 64 but edit and continue (also seems like the unwinding of the callstack is picky on 64 bit when an error occurs).
Thanks,Anonymous
March 03, 2006
Are you sure it works against the 32 bit CLR on a x64 machine?Anonymous
July 16, 2007
When moving from VB to C# a few years ago I relaly missed edit and continue. You can call me lazy butAnonymous
July 16, 2007
When moving from VB to C# a few years ago I relaly missed edit and continue. You can call me lazy but...Anonymous
February 02, 2008
PingBack from http://www.bankruptcyworries.com/2008/02/02/sneck-posset-2/Anonymous
January 18, 2009
PingBack from http://www.keyongtech.com/2400212-no-edit-and-continue-debuggingAnonymous
June 16, 2009
PingBack from http://fixmycrediteasily.info/story.php?id=2377Anonymous
June 19, 2009
PingBack from http://debtsolutionsnow.info/story.php?id=1118