88

I'm a novice web developer, and I've had Firebug recommended for debugging several times. So far, however, I've just been using Chrome's built-in Developer Tools. It seems to do everything that Firebug does, and is cleaner and more organized as a bonus.

As I get more advanced in my debugging, are there features that Firebug has that I'll miss out on with Chrome's DevTools? If so, what are they?

Related: Firebug-like debugger for Google Chrome

Community
  • 1
  • 1
Matthew
  • 28,056
  • 26
  • 104
  • 170
  • 8
    I'm also relatively new to web development, but gave up on Firebug and Firefox pretty quickly just because Chrome seemed so much better as both a browser and a developer tool set. More experienced developers may have different views. In any case, be sure to see this year's Google I/O 2010 talk on Chrome developer tools: http://www.youtube.com/watch?v=TH7sJbyXHuk – brainjam Jun 26 '10 at 18:21
  • Ironically, those programming in Google Closure will need Firefox to run Closure Inspector. – hyperslug Mar 02 '11 at 19:00

17 Answers17

138

I used Firebug from the start and it was a godsend like the invention of fire. But then Chrome came out with its debugger and I tried it. I kept using Firebug, but kept an eye on Chome's dev tools and finally could not longer come up with a reason not to switch after JSON tools were added in v12.

Chrome's DevTools kick butt because it has:

  • Built in Timeline, Profiler and Heap analyzer
  • Built in Audit tool
  • Can access and edit Local/SessionStorage, Cookies, SqlLite DB's, WebSQL, AppCache etc...
  • WebSockets network sniffing
  • JS debugger has some more features (e.g. WebWorker breakpoints)
  • JS debugger let's you edit JS on the fly and run it (JSFiddle w/o the fiddle)
  • Each window gets a devtools window if you like; Firebug is a singleton
  • Firebug perturbs the page by slowing its loading down and by injecting CSS for its inspector feature

UPDATE: 2 years later I have to congratulate the Firefox team for making huge inroads. That said, the Chrome team and debugger make huge leaps forward on a monthly basis, leading the industry. I'd update the above list, but frankly it would fill the entire page.

Sebastian Zartner
  • 18,808
  • 10
  • 90
  • 132
Joseph Lust
  • 19,340
  • 7
  • 85
  • 83
  • 5
    +1 For the last part. I was once a Firebug fan until I made a switch. – Robin Carlo Catacutan Nov 08 '12 at 14:08
  • 4
    Question was asking for the symmetric opposite of your answer :) – Dkyc Nov 09 '13 at 12:54
  • 1
    My mouth started watering after reading your reply. – Karl Jan 08 '14 at 06:09
  • 1
    I was going to post a comment to ask how much of this list is still valid in 2014. Good to see the list. I'll still like to see if there is anything that's in firefox but not in chrome. – Nilesh Mar 27 '14 at 04:26
  • does chrome has an alternative for the responsive layout mode (ctrl+shift+m) in firefox? because this tool is awesome – Ruben Aug 07 '14 at 10:56
  • I'd say topic failed. The question was what advantages Firebug has in comparison to the Chrome DevTools, not vice versa. – Sebastian Zartner Apr 02 '15 at 07:11
  • Chrome's console doesn't have some basic features, yes it has good extra and unusable (for real-world developing) features. I have a Chrome-lover partner, I shown many-times that Firebug is very better for `js developing` than Chrome. of course there is no `best tool`. – Mehdi Dehghani Sep 01 '16 at 08:21
  • @joseph-lust Did you mentioned Chrome Developer Tools Most important feature here i.e searching for content inside scripts (CTRL + Shift + F) ? – vibs2006 Apr 04 '17 at 11:58
29

I haven't run into a Firebug feature I've missed yet after switching to Chrome.

ceejayoz
  • 176,543
  • 40
  • 303
  • 368
11

The Chrome Developer Tools took over the features of Firebug, so all the main features and familiarity are there (such as the $0, and console object).

There are some small differences, such as the DevTools do not have a CSS panel (although CSS stylesheets can be manipulated in the Elements panel).

The Chrome tools additionally have the Timeline, Profiles and Storage panels. The Timeline panel logs loading, CSS rendering, and JavaScript parsing. The Profile panel profiles resource usage and the Storage panel shows and allows changes in the site's database, local storage, session storage, and cookies.

Finally, both tools have their own minor variances, which make various actions a tiny bit easier or harder. My advice is to use Firebug for Firefox, and DevTools for Webkit browsers, since only Firebug Lite works on Chrome, and it lacks many features the normal Firebug has (and the DevTools are built into Chrome).

Sebastian Zartner
  • 18,808
  • 10
  • 90
  • 132
tcooc
  • 20,629
  • 3
  • 39
  • 57
10

I feel a lot more comfortable using Firebug. I can't think of specifics at the moment, but sometimes I'll try debugging something in Safari or Chrome and it seems like such a PITA that I launch Firefox and get whatever done quickly.

The DOM tab is a plus, for one. It's more accessible and well laid out than Chrome's equivalent. I prefer the way DOM and other JS objects are logged to the console in Firebug, too.

Firebug plug-ins like Pixel Perfect are very useful as well. I don't know whether any such tool exists for Chrome.

Overall, it doesn't matter because you have to test in both browsers, anyway. And IE, so might as well compare it to IE's Dev tools (which have improved, but still are not good compared to FF or Webkit's).

I don't think there's anything advanced in particular present in Firebug but not in Chrome that you'll be missing.

JAL
  • 21,295
  • 1
  • 48
  • 66
6

EDIT: This used to be true, but Chrome Dev Tools implemented it.

Firebug can search in all scripts loaded on a page. Chrome Dev Tools can only search in the currently selected script, AFAIK.

Slavo
  • 15,255
  • 11
  • 47
  • 60
  • I use firebug for this feature alone, and the Cmd Shift C to select element anytime. – mbdev Jan 31 '12 at 18:44
  • 3
    When I wrote the answer Chrome Dev Tools did not have this functionality. They have implemented it since then. See this answer to one of the questions I asked here: http://stackoverflow.com/a/7970237/1801 – Slavo Feb 01 '12 at 12:11
  • Slavo nailed it. you can search all scripts (and all other resources) at once in Chrome Dev Tools. Just open the Resources tab and use search box in the top right corner – Boycott Russia Apr 23 '12 at 08:00
  • Search box is gone now in CDT. Use Ctrl+F to search in current script and Ctrl+Shift+F to search in all scripts – Akhil Nov 27 '13 at 06:48
4

As far as I can tell, Firebug is the only one that can edit HTML-code and text live as you type it. Very useful, if you're for example trying to see how text would fit in a container and add one character at a time.

In Chrome when you edit the HTML, you have to press TAB or ENTER to exit "edit mode", and see the changes on your page.

In Firebug you can also enter HTML-code right away. In Chrome, you have to right-click and choose "Edit HTML". Otherwise, it will show up like <b>bold</b>.

I really want to change to Chrome, since it seems to run faster, but the live editing is too important for me.

Niclas
  • 1,362
  • 1
  • 11
  • 24
3

At the time this question was asked Firebug was a beast, but now the Chrome Developer Tools (DevTools) are handy for web developers. Though I'm not ranting about Firebug because I've learnt the web development using Firefox with Firebug.

It was a great tool for web development and it introduced all major features of DevTools and Firefox's DevTools has. However, I switched to the Chrome DevTools though they don't cover all the features of Firebug, because they are light-weighted and much faster than Firebug, accessing localStorage is easily defined and the sources are organized there in my opinion.

Here I'm going to list how the features are unique in Firebug,

  • Search:

    Search option is well-defined in Firebug, because its easily accessible and we can search keyword with case-sensitive and regular expression.

  • DOM:

    The DOM structure can be easily accessed in Firebug with various filtering options like Show User-defined Properties, Show User-defined Functions and so on.

  • Cookies:

    Firebug lets us create our own cookies and gives provision to export cookies.

  • Network/Net:

    Firebug has a Net panel wheras the DevTools call it Network. Both are useful to analyse all the requests made to load the resources and their status. In Firebug, we can easily grasp the resources' Remote IP.

  • Sources:

    Even though the Source Edit is available in the DevTools, I feel Firebug is better while using Source Edit, because if you want to edit a CSS file within the DevTools, you have to go to Sources panel, then press Ctrl+O to find the file. Only then you can edit the file. In Firebug you can easily find the Source Edit under every menu tab.

  • Support for dojo:

    Once I was a dojo developer Firebug was easily extended to support dojo developement by using the Dojo Firebug Extension.

Sebastian Zartner
  • 18,808
  • 10
  • 90
  • 132
Vijin Paulraj
  • 4,469
  • 5
  • 39
  • 54
3

The mouse selection firebug has is great, but I can't seem to find it in the Chrome Developer Tools.

It bothers me because I can't find a hot key for it in firebug, whereas chrome lacks it completely.

I am a noob developer, so the mouse is still used most of the time when developing.

veeTrain
  • 2,915
  • 2
  • 26
  • 43
skinny boy
  • 31
  • 1
2

Objectively seen Firebug 2.0 has many small features, which the Chrome DevTools do not have. Some of them are listed here:

Console panel

  • Displays XMLHttpRequests including the whole request information
  • Displays cookie changes
  • Some more Command Line API functions
  • Separate Command Editor

HTML panel

CSS panel

DOM panel

  • Displays all DOM properties in one place
  • Displays closures
  • Allows to filter the display by properties, functions, etc.

Net panel

  • Allows to stop on XmlHTTPRequests
  • Shows cache information per request

Cookies panel

  • Create and edit cookies
  • Control over cookie permissions
  • Shows raw and formatted size of cookies
  • Allows to stop script execution on cookie change
  • Export cookies in standard format

General

  • Open HTML, CSS and JavaScript in external editor
  • Allows to customize shortcuts

A "feature" that goes beyond the usability is that Firebug is open source. So everyone can participate on it.

Having said that, the Chrome DevTools (as well as the Firefox DevTools) have many more features and other smaller and bigger advantages over Firebug as the team behind Firebug is very small in comparison to the teams behind the other DevTools.

Also, Firebug 3+ integrates into the built-in Firefox DevTools, which means those versions inherit all the features of the Firefox DevTools and may add additional features.

Sebastian Zartner
  • 18,808
  • 10
  • 90
  • 132
1

I think the development tools are similar but I've had trouble forcing Chrome to not cache anything. Even setting the Chrome "Disable cache" setting didn't work 100% of the time; I'm not sure why.

I didn't have this issue with Firefox/Firebug, so I am still using it.

veeTrain
  • 2,915
  • 2
  • 26
  • 43
Roman
  • 61
  • 3
1

Adding my few cents...

  1. Chrome Inspector could not sort the CSS properties alphabetically where as Firebug could do this like a charm. It helps when you inspect some css element and need to grab it firebug comes handy on this.

    As per good CSS coding practice, its always better to have your CSS properties sorted alphabetically in your code.

  2. When you are working on a project involved with lot of scripts.In firebug under script tag you have an option of searching for a js file in the suggestion box provided. Where as with chrome you will have a lame tree view to locate your JS file which is tedious to see the namespacing of your js file and traverse the tree.

    This option might not affect anyone who involves with little JS files in their project. This feature is a bang on with firebug I use when my scripts are more than 1000 JS files.

Matthew
  • 28,056
  • 26
  • 104
  • 170
Ravi
  • 3,132
  • 5
  • 24
  • 35
1

Firebug has the possibility to have other plugin attach to it such as Firecookie. For the rest they are pretty similar, it's all about taste in my opinion.

HoLyVieR
  • 10,985
  • 5
  • 42
  • 67
  • The Chrome developer tools can also be extended using the [`chrome.devtools` API](https://developer.chrome.com/extensions/devtools.html). – Rob W Apr 06 '13 at 10:44
1

also add that it can xopy XPATH add CSS selector for a HTML element.

THAT is really handy sometimes! :))) hahaha

Andr
  • 617
  • 2
  • 9
  • 24
0

Almost made the switch today but I noticed I can't right click on modified CSS in Chrome and copy the Rule or Style declarations like I can in firebug. GOD I wish firefox didn't suddenly start sucking or I wouldn't have this problem.

Banning
  • 2,279
  • 2
  • 16
  • 20
  • Also just noticed that in Chrome you can't use your arrows keys and scroll through various options of an attribute. – Banning Jun 17 '13 at 16:56
0

With the chrome debugger I can debug the jsni of my GWT project where FireBug just show an anonymous function and I don't really recognise the actual function at all.

Dawied
  • 897
  • 10
  • 16
0

I love Chrome dev tool but sometime I missed these powerful feature from firebug.

  • Conditional breakpoint : pause only on specific condition.
  • Logging function calls : mark the function and see everything you want to know in console.
  • Break On Property Change : Mark objects and debugger will pause if property get changed.
Ritesh Chandora
  • 8,382
  • 5
  • 21
  • 38
0

"Edit and Resend" request feature

With "Edit and Resend" feature in Firefox Developer tools (Replay XHR or something in Firebug), you can replay the XHR request with changes in the request including request headers, request body, http method and even url. Google Chrome's Replay XHR simply replays the request, and does not allow any modifications to the request.

I use Firefox Devtools when I need this feature.

Gaurang Patel
  • 459
  • 5
  • 11