Wednesday 23 November 2011

Visual Studio: Selecting which browser to debug with

I love Google Chrome. It's fast to start up, fast to render pages, it knows how to use CSS and it's just generally excellent.

I'm less keen on IE though. However, since it's the most popular browser that's the one I tend to debug my web applications with. But Visual Studio kept launching Chrome instead of IE - turns out it's a simple fix:

1) Right click on a .aspx page in your solution explorer
2) Select the "browse with" context menu option
3) In the dialog you can select or add a browser. For example, if you want Firefox in the list click "add" and point to the firefox.exe filename
4) Click the "Set as Default" button to select the default browser when you run any page on the site.

Works. Life made easier.

Solution bumped from Stackoverflow.

P.S.: If you don't see a 'Browse with' option - check you're not debugging already! Stop debugging and the option will appear.

0 comments: