Debugging Websites with Google Chrome

◇◆丶佛笑我妖孽 提交于 2019-12-01 14:38:59

When you debug a web application, Visual Studio simply attaches itself to the IIS process (or the development server process, if you're using that), and starts the browser with the correct URL. The browser doesn't even know you're debugging. With IE, Visual Studio performs some additional inter-process voodoo to detect when IE closes; other browsers however are unaware of this mechanism and simply do what they always do - display the page until the user closes it. So your choices are:

  • Live with the fact that you'll have to close the browser manually
  • Reuse browser windows (instead of running the browser from inside Visual Studio, use "Attach to process" and open the page manually)
  • Bite the bullet and use IE

I believe this extension allows you to choose your browser with MVC applications. Or, you could just add a normal HTML page, and set the browser default on that. This should become the default for the rest of your project.

To keep IE as you browser right click on an aspx file and click browse with. you should be able to set a default from there.

If you don't have an aspx form just create one, set pref then delete.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!