VS2005进行Web调试的浏览器选择
不幸,安装了firefox后,安装VS2005,VS进行web调试时就用了firefox而不是ie,这应该是默认浏览器搞的
更改方法:
打开 C:/Documents and Settings/Administrator/Local Settings/Application Data/Microsoft/VisualStudio/8.0/browsers.xml
<?
xml version="1.0"
?>
- < BrowserInfo >
- < Browser >
< Name > firefox.exe </ Name >
< Path > "F:/PROGRA~1/MOZILL~1/FIREFOX.EXE" </ Path >
< Resolution > 0 </ Resolution >
< IsDefault > False </ IsDefault >
</ Browser >
- < Browser >
< Name > Microsoft Internet Explorer </ Name >
< Path > "C:/Program Files/Internet Explorer/iexplore.exe" </ Path >
< Resolution > 0 </ Resolution >
< IsDefault > True </ IsDefault >
- < DDE >
< Service > IExplore </ Service >
< TopicOpenURL > WWW_OpenURL </ TopicOpenURL >
< ItemOpenURL > "%s",,0xffffffff,3,,,, </ ItemOpenURL >
< TopicActivate > WWW_Activate </ TopicActivate >
< ItemActivate > 0xffffffff,0 </ ItemActivate >
</ DDE >
</ Browser >
- < InternalBrowser >
< Resolution > 0 </ Resolution >
< IsDefault > False </ IsDefault >
</ InternalBrowser >
</ BrowserInfo >
将第一个
<
Browser
>结点,也就是
firefox的
<
IsDefault
>改为 False ,将 IExplore 的一个改为True- < BrowserInfo >
- < Browser >
< Name > firefox.exe </ Name >
< Path > "F:/PROGRA~1/MOZILL~1/FIREFOX.EXE" </ Path >
< Resolution > 0 </ Resolution >
< IsDefault > False </ IsDefault >
</ Browser >
- < Browser >
< Name > Microsoft Internet Explorer </ Name >
< Path > "C:/Program Files/Internet Explorer/iexplore.exe" </ Path >
< Resolution > 0 </ Resolution >
< IsDefault > True </ IsDefault >
- < DDE >
< Service > IExplore </ Service >
< TopicOpenURL > WWW_OpenURL </ TopicOpenURL >
< ItemOpenURL > "%s",,0xffffffff,3,,,, </ ItemOpenURL >
< TopicActivate > WWW_Activate </ TopicActivate >
< ItemActivate > 0xffffffff,0 </ ItemActivate >
</ DDE >
</ Browser >
- < InternalBrowser >
< Resolution > 0 </ Resolution >
< IsDefault > False </ IsDefault >
</ InternalBrowser >
</ BrowserInfo >
或者直接删除此文件
当然也可以直接将IE部分修改为FireFox的exe路径,在vs里设置默认浏览项为Firefox即可在vs项目调试的时候
利用FireFox进行调试