Peter's Gekko

Sponsors

The Lounge

News

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Using Firefox (and IE) to debug your apps in Visual Studio

The demand for Firefox is rising. If I may repeat my favourite feature: increasing and descreasing fornt size with ^+ and ^- is a delight for my eyes. Almost saves me from a new pair of glasses. It would be nice to start using FF in Visual Studio when building the app. Which is not that difficult but took some searching. Let me share with you how to set up FF in VS (2003).

  • In the file menu is a “browse with“ option. Select this.
  • Add Firefox to the list of supported browser and check “default“

In the options of your project set “always use IE“ to false

  • That's all.

    Now FF wil be the default browser when you launch your app from VS. Breakpoints and everything work as usual. When your project leans heavely on IE, for instance because you don't want to miss smart navigation, you can instruct VS to keep using IE on a project basis. When you drop IE you also drop the possibility for remote debugging. But that's something I had already given up.

    Peter


  • Posted 10-25-2004 12:29 PM by pvanooijen
    Filed under:

    [Advertisement]

    Comments

    WheelThis wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 10-25-2004 10:10 AM
    You should try CTRL+Wheel to increase/decrease the font size.

    That will be your favorite feature

    ;-)
    Ben wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 12-06-2004 11:15 AM
    THIS IS THE GREATEST TIP EVER. It also stops your code from going to read only...
    Raterus wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 12-14-2004 1:24 PM
    I had to add "Browse With" to my File menu through the following

    Tools | Customize | Commands Tab
    andre wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 12-16-2004 2:42 PM
    I have been trying to do this ever since I left Vs 6 behind. Unfortunately, even after trying these suggestions, I still cannot use FF or Moz to debug VS.NET. When debugging, as soon as FF starts up the debugger immediately unloads. Any ideas?
    andre wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 12-16-2004 2:46 PM
    CORRECTION...to last post.
    The debugger immediately unloads when trying to debug a Web Service usig FF as browser. WEb Applications DEBUG FINE! Peter your my hero of the day...
    andre wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 12-16-2004 2:49 PM
    CORECTION TO CORRECTION..
    I was so happy for a minute...
    I just noticed that it was iE that had launched. FF still has same problem. Debugger unloads as soon as FF is launched. :(
    Still hoping for a solution....
    Peter's Gekko wrote Debugging a webservice with Firefox
    on 12-21-2004 12:54 AM
    Debugging a webservice with Firefox
    spakinz wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 12-23-2004 10:31 AM
    i don't have the option 'browse with..'. Which version of vs 2003 do you have?
    Peter van Ooijen wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 12-23-2004 12:25 PM
    Scott Elkin wrote Debug in Visual Studio using Firefox
    on 01-04-2005 8:48 PM
    Tim Haines wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 01-05-2005 1:46 AM
    This doesn't work for me either. I have the same problem as Andre. When Firefox starts the debugger quits. It probably just needs tweaking in some small way - pass as to what it might be though.
    Peter van Ooijen wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 01-05-2005 2:34 AM
    Hi Tim,
    have you read http://dotnetjunkies.com/WebLog/petergekko/archive/2004/12/21/38013.aspx ?

    When the app has started use "Attach to process" <ctrl><Alt>P
    Micke wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 04-07-2005 3:42 AM
    FF debugging works fine for me. Can trace into code, use break points ...

    Using FireFox 1.0.1
    Thomas wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 06-15-2005 2:13 PM
    I tried this as well. I went up to "File" > "Browse With", and gave it a shot.

    Hitting the Debug button caused Visual Studio to start up FireFox with my app loaded. However, as soon as it does this, the debugger stops.

    One interesting sidenote. After doing the above, I noticed the "Browse With" command had mysteriously been removed from my "File" menu. WTF? I used the suggestion in the previous comments to add it back to the menu.

    WOW.
    Les Matheson wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 07-06-2005 7:41 AM
    It does seem that the "Browse with..." option isn't always on the File menu -- on my VS 2003, it shows up if I right-click a .aspx file in Solution Explorer. Its also available in the large list of functions in the File section of /Tools /Customize /Commands.
    Shane Henderson wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 07-19-2005 1:10 PM
    If you want breakpoints and stepping through code to work with Firefox you have to close all instances of Firefox before you run in debug mode. Then when you debug a web application through VS.NET and it launches a window everything will work. If you have any other browser instances of Firefox open VS will not attach to the process.
    aaaa wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 09-02-2005 10:43 AM
    thanks for help - my vs 2005 beta lunched firefox but I wanted to check how it looks in IE. It worked :)
    Nazmundo wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 09-27-2005 10:24 AM
    xlnt tip peter thanks .... couple this with the http://chrispederick.com/work/webdeveloper/
    web developer extension and were all on our way to creating accessible standards compliant asp.net web apps! (well almost)
    Sarel j wrote Using Firefox with a datagrid
    on 10-03-2005 3:29 AM
    I know that this is off topic but could someone please help me? I have 2 datagrids:dgModels and dgFavorites. The idea is that all the models that you select should be added to dgFavorites on postback.

    This works great with IE but Firefox does not recognize the postback??? The isPostback does not register in Firefox.


    Please help!!
    pvanooijen wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 10-04-2005 2:41 PM
    IsPostBack is a server-side feature. I don't think your problem has to do with FF itself, but rather by it's settings. Did you disable session, cokkies or something like that ?
    Sarelj wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 10-11-2005 8:20 AM
    Re: the firefox and postback problem. Thanks for that tip... It did not help but made me think. You are right, it is a browser problem and not a server proble. I do have cookies enabled for all sites. Where do I disable sessions in FF?? I still think that it might be something else??
    Sham wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 07-04-2006 8:54 AM
    BIGGGG THANKS !!!
    Phi Nguyen wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 08-16-2006 10:45 AM
    There is an option in Firefox that let you open a new browser window if links are from other apps. This would let you use Firefox as both your regular browser and for debugging as well
    Jovi wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 01-19-2007 2:10 PM

    If firefox detaches, click on disable script debugging in the advanced tab of internet options in IE.

    Roger wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 01-10-2008 5:31 PM

    Wow ! at least ! I use firefox as my default browser but I wanted to use IE for debug, but it was impossible till now to find on internet how to stop vs to launch firefox when I started to debug my site. THANKS

    Noelia wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 05-20-2008 3:40 AM

    I have VS 2005 and my applications run in Firefox. I would like to debug it in IExplorer nad i don't know to change it because VS 2005 haven't  “browse with“ option and “always use IE“ property in the project.

    How can i do it?Thanks

    Noelia wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 05-20-2008 4:31 AM
    john wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 07-01-2008 3:55 PM

    Thank you.

    DotNetKicks.com wrote Launch Firefox Instead Of Internet Explorer When Debugging
    on 07-18-2008 9:39 AM

    You've been kicked (a good thing) - Trackback from DotNetKicks.com

    Paulie wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 07-19-2008 4:41 PM

    I debug in Firefox by browsing to the page in FF, setting my breakpoint(s) and then in VS (2008) selecting the Menu option Debug -> Attach to Process and then selecting w3wp.exe (the IIS application pool process) - if you don't see this process you may have to ensure 'Show processes in all sessions' is checked. Hope this helps!

    Blue Onion Software - Onion Peels Blog - Friday Links #9 wrote Blue Onion Software - Onion Peels Blog - Friday Links #9
    on 07-26-2008 5:22 PM

    Pingback from  Blue Onion Software - Onion Peels Blog - Friday Links #9

    browser predefinito | hilpers wrote browser predefinito | hilpers
    on 01-21-2009 12:28 PM

    Pingback from  browser predefinito | hilpers

    Unable to debug in Visual studio 2003 on personal computer | keyongtech wrote Unable to debug in Visual studio 2003 on personal computer | keyongtech
    on 01-22-2009 4:10 AM

    Pingback from  Unable to debug in Visual studio 2003 on personal computer | keyongtech

    Rick O'Shay wrote re: Using Firefox (and IE) to debug your apps in Visual Studio
    on 03-28-2009 4:19 PM

    The plus/minus font control is nice, but I personally like their FireBug javascript debugger. Then again, if you're using Microsoft's Ajax kit it isn't with shit, because of the confusing morass Microsoft generates. I'm hoping that in 5 or 10 years they come up with a good JS debugger on their own. I'm encouraged that they recently introduced the 10-year-old technology known as MVC and that by 2020 they will have an IoC container.

    (what a horrific company for developers they are)

    Add a Comment

    (required)  
    (optional)
    (required)  
    Remember Me?