I have VS2005 and I am currently trying to debug an ASP.net web application. I want to change some code around in the code behind file, but every time I stop at a break point and try to edit something I get the following error message: ‘Changes are not allowed when the debugger has been attached to an already running process or the code being debugged is optimized.’
I’m pretty sure I have all the ‘Edit and Continue’ options enabled. Any suggestions?
The application is actually running off of a compiled version of your code. If you modify it it will have to recompile it in order for your changes to work, which means that it will need to swap out the running version for the new compiled version. This is a pretty hard problem – which is why I think Microsoft has made it impossible to do. It’s more to protect you from THINKING some changes were made when they really weren’t.