Debugging support for 64-bit Edit and Continue in Visual Studio 2013

Debugging support for 64-bit Edit and Continue in Visual Studio 2013

Rate This
  • Comments 35

You asked, and we have listened. When using the debugger, Edit and Continue for 64-bit targeted environments is something that many .NET developers wanted, and voted heavily for on the Visual Studio uservoice site. The good news is that with the latest version of Visual Studio, it’s here and you can now try it yourself.

 

Here is how to see it in action:

Consider the following line of code and imagine you are stopped at that line in the debugger (e.g. due to a breakpoint)

int ret = 5 * foo;

 

If you try to edit that code and specifically from foo to bar (int ret = 5 * bar;) while debugging in previous versions of Visual Studio, you would see this dialog

With VS2013, the dialog will not appear again, and instead you’ll be able to edit the code and continue debugging.

For people who are new to the Edit and Continue feature, Edit and Continue eliminates the need to stop and restart a debugging session when a developer makes modification to code being debugged. This feature exist for 32-bit targeted environments and with the latest version of Visual Studio it is now available for 64-bit. Please read online for more on the Edit and Continue debugger feature.

 

There are several ways that Edit and Continue helps the developer:

  • Rapid development - developers find that starting a debugging session is time consuming making rapid development harder. Having the ability to continue debugging without the need to restart the debugging session makes the scenario much faster.
  • Help fix hard to reproduce bugs - finding the potential location of a bug that is hard to reproduce is extremely difficult. Being able to make changes to the potential area and verifying it simplifies the debugging flow dramatically as it might be difficult to verify the fix done if the debugging session will need to be restarted.
  • Dealing with large scale projects - starting a debugging session for large scale project is time consuming. Adding to its complexity of large projects makes it even more time consuming as any modification to the code, requires in addition to restarting the debugging session time to recompile the project.

Note that some ASP.NET developers are not aware that support for Edit and Continue exists but requires developers to enable it first. This can be done by going to the project properties and under the web settings there is a checkbox you’ll need to check named “enabled Edit and Continue”. To simplify the workflow starting with Visual Studio 2013 the setting is turned on by default.

 

For Azure cloud tools developers there are two main options: web role and worker role. To enable Edit and Continue for web roles you’ll need to set your web role project to use IIS Express. Worker roles currently are not supported, however we will enable this in a future release.

In closing, we are really happy to bring this capability to you and as always your feedback is welcome in the diagnostics forum.

 

Leave a Comment
  • Please add 8 and 6 and type the answer here:
  • Post
  • Does VS 2013 support edit & debug support for Lambda expressions as well?

  • Tarun, it's not here yet. See this post by the .Net Team: blogs.msdn.com/.../announcing-the-net-framework-4-5-1-preview.aspx

  • I don't know, I think the edit and continue is weak at best.  I'm old...so I remember it in the VB days and it worked everywhere.  The linq and lambda restrictions need to be removed for this really to be exciting....but let me be the 1st to say....if it that is the case....I will be over joyed.

  • Will Edit & Continue also work for 64 bit native C++ applications ?

  • Rolf, sorry this does not apply to C++, please vote for it on uservoice if that is what you'd like to see in future releases:

    visualstudio.uservoice.com/.../4126415-x64-edit-and-continue-for-c-

    Tarun, no there have been no enhancements to EnC beyond supporting 64bit for managed, please vote for it on uservoice if that is what you'd like to see in future releases:

    visualstudio.uservoice.com/.../4079440-edit-continue-allow-the-modification-of-lambda-

  • What about C++ native? Edit and continue doesn't work at all in the preview for either 32 or 64 bit:

    stackoverflow.com/.../visual-studio-2013-preview-native-c-edit-and-continue

  • How about an update for VS2012 to support edit and continue on 64 bit systems?

  • will this work in windows 7 or just windows 8?

  • @JoJo: Updating 2012 to support x64 EnC won't be possible, it requires the 2013 compilers and .NET 4.5.1

    @Eli: Yes, this will work on Windows 7

  • Will edit and continue for x64 be available when the project is run under IIS and not IIS Express for normal web projects (not Azure web roles)?

    Currently the Enable Edit and Continue option on project settings page is disabled when I select IIS

    Thanks.

  • Will this work with SharePoint development?

  • What do you do when the Enable Edit and Continue is not enabled on a Web App?

  • @Keith Nicholson

    Are you unable to set it? Are you using IIS Express or IIS?

  • @Keith Nicholson

    Are you unable to set it? Are you using IIS Express or IIS?

  • @gkarkalis

    No, EnC is not currently supported with IIS in VS 2013. The team responsible for this doesn't have any plans as of now to support it in our next release either.

Page 1 of 3 (35 items) 123