about me

I'm a 34'ish year old web application developer from South Portland, Maine. I love meeting fellow techies, drop me a line if you want to talk shop.

Categories

Firefox’s Firebug vs Safari’s Web Inspector

Posted on 03/05 at 04:12 AM

Like most web developers (that I like) I use Firefox for building my web applications. Its stable, it renders beautifully and it has more 3rd party plugins than you can shake a stick at. But without a doubt the biggest reason I use FF is a plugin called Firebug. I use it primarily for debugging Javascript but Firebug can do sooooo much more. Internet Exploder has nothing like it! Safari didn’t used to .... but for some reason ... it now does?! huh?!

I took a few screenshots tonight from both Firebug and Web Inspector that I thought were interesting.

I didn’t realize it, but Web Inspector now has a Console that you can execute javascript in, just like Firebug’s, and it works wonderfully!! And it has a Profiler like Firebugs, but with more FLARE. It looks reminiscent of the storage bar in iTunes if you happen to have an iPod or iPhone. You’ll also find a DOM browser and CSS attributes browser just like in Firebug.

I’m impressed that Web Inspector has grown into a more mature tool for developers. For whatever reason though, Apple still doesn’t make the tool easy to use. It lacks Firebug’s INSPECT button ... where you can quickly left-click to select a DOM element on a page. Web Inspectors version of this is to right-click on your target ... but thats awkward at best. Knowing Apple, it will remain that way for eternity. Bummer. Web Inspector is neat, but it still cant hold a candle to Firebug. I do hope they improve it.

Oh and by the way ...

Web inspector is hidden by default, if you would like to try it out then open Terminal (/Applications/Utilities/Terminal) and paste in the following line at the prompt.

defaults write com.apple.Safari IncludeDebugMenu 1

Now quit safari and then launch it again. right click somewhere on a page and select Web Inspector. This will also make available a DEBUG menu at the top of your screen. Feel free to browse.

9 Comments

Comment #1 by Justin Henry  on  03/05  at  11:05 AM

As an aside, if you don’t like using the CLI to toggle features like the inspector, it might be worth taking a look at the ”Secrets” prefpane.  It gives you gui access to a whole host of options through an interface in the System Preferences.

Comment #2 by haiming webhosting reviews  on  04/30  at  11:53 PM

I like firebug because I like firefox best grin

Comment #3 by build a bear  on  05/16  at  10:29 AM

firefox is my favourite and i think firebug + firefox = firebugfox ...hehe

Comment #4 by soft bucuresti  on  05/18  at  01:35 AM

A bunch of people suggested input manager hacks for Safari that attempt some of these same things. I know these things exist, and I’ve used some in the past, but they are not equivalent to Firefox extensions based on supported, official APIs.

Comment #5 by michaels craft store  on  05/22  at  06:02 AM

hey bro..i do use fox a lot but it kinda mess with seoquake...has anybody experiencing the same thing ?

Comment #6 by bridal shower games  on  06/08  at  10:21 AM

i also experienced the same thing..anybody with solution ?

Comment #7 by Sabuls  on  06/09  at  05:36 AM

hey i have the solution..email me and i’ll share it with you bro

Comment #8 by sabul  on  06/10  at  12:55 PM

i hope somebody can help us here lol

Comment #9 by PNC  on  06/10  at  10:22 PM

safari —Blah & Booo!!!  Long Life The KING!!  Thanks for the comparison CodeOfficer.

Leave a comment?

Name:

Email:

Location:

URL:

Remember my personal information

Notify me of follow-up comments?

Submit the word you see below:


RailsConf 2008 Often times I will release code for free or go that extra distance to help others online. If my skills were useful to you, please consider a small donation. Thank you very much.

recommend me!

Search

My Wishlists

@ Amazon.com

My Other Sites

Foundation's Edge, RJones Family, We're Not.com (only for staging), Ailee Jones (same as rjones for now)

Friends of Mine

Aaron, Barnaby, Brian, Chris, Dirk, Frank, Fred, Four, Justin, Matt, Mike, Monty, Paul, Sean, Travis

IRC Hangouts

I can usually be found lounging on irc.freenode.net while I work, on the following channels: #codeigniter, #expression engine, #fauna, #jquery, #rubyonrails, #textmate, #werenot.