Blog Stats
  • Posts - 32
  • Articles - 0
  • Comments - 96
  • Trackbacks - 0

 

Changing your debug browser to Fire Fox in Visual Studio 2005

WOW!  I can't believe how much time I just spent trying to change the browser I use to debug with in Visual Studio.  In visual studio 2003 I could have simply gone to File>Browse With.  This (at first glance) no longer appeared to me.  After some research I realized that I was in a "Web Application" project rather than a "Web Site" project.  This appears to mean something very different to Visual Studio.  So I created a quick "Web Site" project (something I never use any more for testability reasons) but still didn't find the "browse with" option.  After some poking around I found that this option was moved to the project context menu - but still only in the "web site" project.  So...in a "web site" project, right click on the project, "browse with".  In the window that pops up, choose add, and then browse to the firefox.exe file (mine was in in program files>mozilla firefox>firefox.exe).  Then hit ok.  And click the "Set as Default" button.  Now you can go back to using your "web application" project!

Feedback

# re: Changing your debug browser to Fire Fox in Visual Studio 2005

Gravatar Thanks for this... It worked a treat :) 12/22/2007 4:12 PM | Danny Lister

# re: Changing your debug browser to Fire Fox in Visual Studio 2005

Gravatar And then if you change your debug browser to firefox, is there any way to debug Javascript code in visual studio? It doesn't appear there is. I guess you have to use some type of add on tool like firebug? 1/29/2008 12:05 PM | control13

# re: Changing your debug browser to Fire Fox in Visual Studio 2005

Gravatar What about doing this for VS 2008? 6/21/2008 6:43 PM | Mike

# re: Changing your debug browser to Fire Fox in Visual Studio 2005

Gravatar If you right click on a web page (.aspx) and then select browse with you will get a list of browsers. You can choose one to browse with for that instance...and you can set your selection to default. 6/21/2008 8:01 PM | Andrew Siemer

# re: Changing your debug browser to Fire Fox in Visual Studio 2005

Gravatar Thanks! Been bugging me for a while.

BTW, same process in VS2008. 9/25/2008 6:12 AM | Nate

# re: Changing your debug browser to Fire Fox in Visual Studio 2005

Gravatar Thnx a Lot Buddy...

Because of your blog, I had to spend only 10 min to find a solution for this problem :-) keep it up!!! 11/10/2008 11:31 PM | Hari

# re: Changing your debug browser to Fire Fox in Visual Studio 2005

Gravatar An Accident - Debug ASP.NET page in FIREFOX
1. Open solution in VS 2008,
2. Mark Debug Point in code
3. Run page -by default run in IE
4. Open FireFoX copy the page URL and run
5. you are debuging code in firefox.

12/3/2008 11:31 AM | Zan

# re: Changing your debug browser to Fire Fox in Visual Studio 2005

Gravatar Cool, thanks ^___^ 1/13/2009 2:59 AM | GreenblitZ

# re: Changing your debug browser to Fire Fox in Visual Studio 2005

Gravatar For quick debugging try this..

Add Debugger.Break() into your code at an appropriate place.

Browse to the page in firefox (via localhost) if on local dev machine? and the Visual Studio Just in Time debugger should pop up.. select the currently open instance of Visual Studio and you can step into the code where every you want without having to start from the beginning or jumping to cursor.

-- Lee 1/22/2009 3:12 AM | Englestoe

# re: Changing your debug browser to Fire Fox in Visual Studio 2005

Gravatar That was simple! Shoulda seen that.

Thank you very much.

1/23/2009 1:40 PM | Roger Willis

Post a comment





 

 

 

Copyright © Andrew Siemer - www.andrewsiemer.com