简体   繁体   English

在调试时启动Internet Explorer

[英]Start Internet Explorer on debugging

I am currently write an ASP.NET WebApplication in Visual Studio 2010. My default browser is Firefox. 我目前在Visual Studio 2010中编写ASP.NET WebApplication。我的默认浏览器是Firefox。 If I start an WebApplication, the WebApplication starts up in the same instance of Firefox. 如果启动WebApplication,则WebApplication将在Firefox的同一实例中启动。 How is it possible to avoid it? 如何避免呢? How do I configure Visual Studio that the WebApplicaton starts in an new instance of Internet Explorer? 如何在Internet Explorer的实例中配置WebApplicaton启动的Visual Studio?

Thanks in advance! 提前致谢!

  1. Right click on any web page in your solution (.aspx file is fine) 右键单击解决方案中的任何网页(.aspx文件都可以)
  2. Select "Browse With..." 选择“浏览...”
  3. Highlight the browser you would like to use 突出显示您要使用的浏览器
  4. Choose "Set as Default" 选择“设为默认值”

Now whenever you start debugging, it should use your default browser. 现在,无论何时开始调试,它都应该使用默认浏览器。

Note you can also click "Add..." in this dialog to add more browser options to the dialog. 注意,您也可以在此对话框中单击“添加...”,以将更多浏览器选项添加到对话框。

EDIT: To make this always open up in a new instance, check your Internet Explorer settings (Tools > Internet Options > General > Tabs > Settings > Open Links From Other Programs In: ) 编辑:要使其始终在新实例中打开,请检查Internet Explorer设置(“工具”>“ Internet选项”>“常规”>“选项卡”>“设置”>“从以下位置的其他程序打开链接”)。

1) Right click on a .aspx page in your solution explorer 1)在解决方案资源管理器中的.aspx页上单击鼠标右键

2) Select the "browse with" context menu option 2)选择“浏览方式”上下文菜单选项

3) In the dialog you can select or add a browser. 3)在对话框中,您可以选择或添加浏览器。 If you want Firefox in the list, click "add" and point to the firefox.exe filename 如果要在列表中使用Firefox,请单击“添加”并指向firefox.exe文件名。

4) Click the "Set as Default" button to make this the default browser when you run any page on the site. 4)当您运行站点上的任何页面时,单击“设置为默认”按钮以使其成为默认浏览器。

By Scott Gu 由顾顾

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM