IIS Express Immediately shutting-down running site after stopping web application

前端 未结 5 1658
余生分开走
余生分开走 2020-11-29 18:10

I\'m using visual studio 2012 in the first days when I want to stop application in IDE, application was still running on IIS Express, I could browse and work with running ap

5条回答
  •  生来不讨喜
    2020-11-29 18:31

    This is probably best categorized as another workaround, but it works for me.

    I generally start the project for the first time with the "View in Browser" context menu (or CTRL-Shift-W).

    From then on, anything that requires debugging, I usually attach to the new existing iisexpress process. While mousing thru context menues would make this a non-starter, it is nearly as quick as F5 with the following keystrokes:

    • Shift-F6 to build the current project or Ctrl-Shift-B to build the entire solution (this is only required if you have made changes but I thought I should mention it since F5 already does this).
    • Ctrl-Alt-P opens the attach to process dialog

    • typing "iis" will then bring you down to the iisexpress process

    • hit enter and you're attached

    If you have more than one iisexpress running, the last one started will generally appear at the top of the list. Another option is to shift-select and attach to all of them.

    This has a number of advantages IMO. First and foremost, it doesn't terminate the process. Second, the browser window isn't closed when you stop debugging. It cracks me up when I see a developer repeat 7 steps to get to reproducing a bug, when all he needs to do is hit F5 in an existing browser window to just repost once the debugger is connected. Last, I have to do this already when attaching to nunit, so I get a more consistent experience.

提交回复
热议问题