Click here to Skip to main content
15,891,136 members
Articles / Web Development / IIS

IIS is Dead - Long Live IIS!

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
9 Sep 2015CPOL1 min read 11.2K   2   3
IIS is dead - Long live IIS!

A major part of developing is debugging. Stepping through your code, inspecting variables and verifying the program flow behaves as predicted is an essential skill for any developer. The debugger in Visual Studio is pretty good. At the place you desired breakpoint, hit F5 and Visual Studio will fire up the IIS express and open up a new browser window (if it is a web application) and you're good to go.

The process of perfecting the code usually requires a lot of "trial and error", where each time you start the debugger, find a bug, stop the debugger, fix the bug and start over. By default, Visual Studio will shut down the IIS express  when you stop the debugger. That means that if you make a small fix in the code and compile it, you can't just refresh the browser and see the result of the new code instantly.

Luckily, there is an easy fix for this. In Visual Studio, go to "Tools -> Options" and in this small popup window, find "Debugging -> Edit and Continue". Remove the checkmark in the "Enable Edit and Continue" from the checkbox and you're all good to go.

IIS express will always shut down when you close Visual Studio. If you want to shut down IIS express without closing Visual Studio, go to the system tray, right click the IIS icon and choose close.

Image 1

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader Hi3g
Denmark Denmark
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
SuggestionThink you forgot one Pin
Reggie Van Wyk10-Sep-15 8:56
professionalReggie Van Wyk10-Sep-15 8:56 
QuestionIs this really what you want? Pin
wvdhouten10-Sep-15 5:08
wvdhouten10-Sep-15 5:08 
QuestionIs this right? Pin
Paul Tait9-Sep-15 14:56
Paul Tait9-Sep-15 14:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.