Search code examples
visual-studio-2008debuggingvwdexpress

Possible to change Visual Web Dev without stop/start recompiling whilst debugging?


This may be a stupid question, but I'll feel stupider if I don't ask and find out in 12 months that it was possible (this happened when I realized I could do what I'm requesting below with .aspx files).

Is it possible to change my project files (c# classes, which predominate in an asp.net mvc environment) without recompiling whilst debugging? Specifically, if I find a bug while stepping through code, I want to avoid stopping the debugging, then restarting, and all the associated waiting.

Thanks, James


Solution

  • Yes. Set breakpoints around where you want to change the code. Also, you must for each project go to Project -> [Project Name] Properties, click on the Web tab ... under servers check Enable Edit and Continue. You will only be able to do this if you're using the Visual Studio Dev Server (which you should always do in my opinion). If you find that problematic to deploy than just downloda the Web Deployment Project add-on.

    http://www.microsoft.com/downloads/details.aspx?FamilyId=0AA30AE8-C73B-4BDD-BB1B-FE697256C459&displaylang=en

    Regards.