How to change the default browser to debug with in

2019-01-21 12:38发布

When you hit F5, the browser windows pops up, how do you set which browser the debugger users in Visual Studio 2008?

Update 1
I have looked for the 'Browse with' option and not found it.
Visual Studio opens the default browser instead of Internet Explorer

Update 2
If you are already debugging you dont have the 'Browse with' option.

  • Stop debugging and then its there!

Update 3
The accepted answer below is also relevant to changing the default browser to debug with in Visual Studio 2010.

12条回答
倾城 Initia
2楼-- · 2019-01-21 12:58

An easier way to do this is simply by selecting the arrow next to the Start Debugging:

the Start Debugging

Then in the Drop Down goto Web Browser and select the browser you would like to debug the site with, you can also select Browse with... to set the default as explained in other answers.

查看更多
放我归山
3楼-- · 2019-01-21 12:59

First click show all files. Then in the bin folder choose any xml file and then right click and by selecting 'browse with' select your desired browser.

查看更多
Explosion°爆炸
4楼-- · 2019-01-21 13:00

ie ---> Tools ----> Internet options -----> Programe ------> Make Defualt

查看更多
你好瞎i
5楼-- · 2019-01-21 13:02

ASP.NET projects:

  • Right click a webpage (.aspx, or on a folder)
  • Select Browse With...
  • Choose your browser
  • Click Set as Default
  • Click Browse

ASP.NET MVC 1 projects:

Right click Default.aspx, then follow steps above.

ASP.NET MVC 2 projects:

As there is no Default.aspx, you need to create a Web Form (right-click project > Add > New Item) and follow the steps above.

查看更多
别忘想泡老子
6楼-- · 2019-01-21 13:05

I find that the Browse With.. menu item only appears in Visual Studio 2010 when I Run as administrator. And in that case it is available even while in debug mode.

查看更多
时光不老,我们不散
7楼-- · 2019-01-21 13:06
  • (In the Project Solution window) Right click a page (.aspx, or on a folder)
  • Select Browse With...
  • Choose your browser
  • Click Set as Default
  • Click Browse

context menu screenshot

查看更多
登录 后发表回答