1

I've been trying to improve my Visual Studio debug startup time. I've gotten it from 45 seconds to about 25 seconds to load up my site for debugging. I've been following advice from this SO link.

One option suggests I un check the 'Enable Edit and Continue' button under project -> web -> debuggers.

This makes the time Visual Studio takes to open up, load my site and ready to use/debug about 5 seconds, down from 25.

But I'm concerned what it does, or doesn't do/allow?

It seems like I can still edit html/razor, javascript code while debugging, so what does it do?

chuckd
  • 13,460
  • 29
  • 152
  • 331
  • It lets you change code while debugging without having to restart your program/site. C# and vb.net code. – Hans Passant Mar 22 '18 at 00:05
  • I can do that even with the button unchecked! Please look at my last line in the post – chuckd Mar 22 '18 at 00:44
  • Your last line mentioned that JS code could dynamic change and work immediately during debugging? I just tested it in my side with VS2017 15.6.3, however, it won't work no matter i check "Enable edit and continue", as i know the option Edit and Continue only with the main executable code – Fletcher Mar 22 '18 at 06:39
  • maybe I'm missing something here, but I just added a new line of Javascript code, hit the reload button in the browser and set a new breakpoint on that new line. It seems to be stopping on that new breakpoint for me. Is there some other way to utilize dynamic code that I'm unaware of? I also added a new HTML tag, hit reload and see the changes in the browser. – chuckd Mar 23 '18 at 08:04
  • "You can disable or enable Edit and Continue in the Options dialog box at design time. You cannot change this setting while you are debugging." https://msdn.microsoft.com/en-us/library/7yty6a48.aspx?f=255&MSPPError=-2147217396 – Fletcher Mar 26 '18 at 15:08

0 Answers0