Debugging Websites with Google Chrome

前端 未结 3 818
长发绾君心
长发绾君心 2021-01-17 05:25

When writing an ASP.NET website, Visual Studio allows me to specify which browser to use for debugging. I\'ve just started playing with MVC 3 and I\'m not seeing any such op

相关标签:
3条回答
  • 2021-01-17 05:51

    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
    0 讨论(0)
  • 2021-01-17 06:07

    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.

    0 讨论(0)
  • 2021-01-17 06:08

    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.

    0 讨论(0)
提交回复
热议问题