Debugging CSS, AJAX and DOM with Firebug 55
prostoalex writes "Joe Hewitt of Parakey in the latest Dr. Dobb's Journal provides a detailed overview of the Firebug extension for Firefox: 'Firebug breaks the page down into a set of tabs that depict its most important aspects — HTML, CSS, JavaScript, the DOM, network activity, and a console for errors and log messages. No tab is an island; Firebug lets you browse code just as you browse the Web by presenting objects as hyperlinks that can take you from one view to another.'"
Perfect Tool (Score:4, Funny)
Well, now its on
Aptana IDE... (Score:0)
last semester (Score:-1, Redundant)
Re:last semester (Score:1)
Re:last semester (Score:0)
What did you do, coded some cool <marquee> s using FrontPage?
Re:last semester (Score:2)
Good but no cigar (Score:4, Informative)
Combine Firebug with the Web Developer Toolbar ahref=https://addons.mozilla.org/firefox/60/rel=u
Re:Good but no cigar (Score:5, Informative)
DOM Inspector was actually written by the same person who wrote Firebug: myself, 6 years ago. There is no reason to use DOM Inspector any longer. Firebug does everything it does and more, but with a much more pleasant and modern user interface.
Re:Good but no cigar (Score:2)
That's what I said. The included DOM Inspector extension. As in included (with) the browser. I should have been a little bit clearer on the context though..
DOM Inspector's excellent for javascript debugging, as you can use the full screen easily and can switch windows fast (extremely useful for debugging the tangle of JS in some webapps).
> DOM Inspector was actually written by the same person who wrote Firebug: myself, 6 years ago.
I guess a thanks is in order! Both applications are excellent and extremely useful.
There's not much missing from them, either - the only function I can think of is an ability to search the DOM - both the objects and the data in them (for finding js variables).
Re:Good but no cigar (Score:5, Informative)
Perhaps you haven't tried Firebug 1.0, which allows you to open Firebug as a separate window. Versions prior to 1.0 did restrict you to a panel at the bottom of the browser.
Re:Good but no cigar (Score:2)
You've really nailed it - this version is absolutely fantastic. Brilliant.
Re:Good but no cigar (Score:0)
Re:Good but no cigar (Score:3, Insightful)
What difference does it make what your browser of choice is? You're developing, not browsing.
Re:Good but no cigar (Score:3, Insightful)
But seriously, Firebug (and the webdev extension) have made my job a LOT easier. (And my co-workers, too.) Problems that took me 30 minutes to an hour in the past to find, I can now find them in seconds. It's been a god-send. Thank you so much.
Re:Good but no cigar (Score:0)
Shut up and pay the man. We all owe him money even if he released the extension for free.
At least donate 5 dollars or something.
You and 4 co-workers can find 4 quarters a piece can't you?
thanks for the app!
not only does it make all the advanced stuff easy but for a total beginner like me it actually makes javascript easier to learn because I have the console to play around in. This year makes the 4th time in 6 years that I've tried to learn javascript. The first time that I'm actually learning enough to be productive. And thanks to firebug (and prototype) I'm very very very productive.
Re:Good but no cigar (Score:2)
Re:Good but no cigar (Score:2)
But you (I) certainly use the Dom inspector less after Firebug, and all hail Joe and his cohorts!!
--Robert
Re:Good but no cigar (Score:0)
Re:Good but no cigar (Score:2)
Thanks!
Re:Good but no cigar (Score:2)
Sera
Re:Good but no cigar (Score:0)
Link to old extension (Score:5, Informative)
It would be a shame if everyone installs 0.4 and misses out on all the great new stuff in 1.0.
Re:Link to old extension (Score:0)
Re:Link to old extension (Score:0)
I dunno, maybe he could play the dwarf. What credits does he have?
Re:Link to old extension (Score:0)
Re:Link to old extension (Score:2)
Seriously. I've just installed it, seems OK. I hope the annoying reporting of bugs that don't exist when using window.open() is gone.
Re:Link to old extension (Score:2)
The new version is amazing as well, I just started to play with it.
It won't be an overstatement to say that this sole extension is saving web developers worldwide thousands of debugging hours: every single day.
Firebug 1.0 is FANTASTIC. (Score:2)
When we finished the app and started unit testing, they again gave me grief over the fact that you couldn't properly test for coding inefficiencies. With FireBug 1.0's built-in profiler, I again have an answer to them.
FireBug is THE killer-extension for web developers. Your work is extremely appreciated.
Re:Link to old extension (Score:1)
debug (Score:3, Funny)
Re:debug (Score:1)
for the big ones, eh?
Exellent tool but, but not for web developers (Score:0, Interesting)
Don't get me wrong, I think the tool is excellent, but do you really want to go bug chasing at this low level of abstraction ? You can easily waste hours debugging like this, figuring out what exactly happened (or didn't happen)
I think you are better off using a high level AJAX toolkit like echo2 [nextapp.com] or Wt [sf.net] instead, blame their developers for any JavaScript or other unexpected trouble, and let developers of these toolkits enjoy FireBug in ironing out these bugs.
Re:Exellent tool but, but not for web developers (Score:4, Insightful)
Re:Exellent tool but, but not for web developers (Score:1)
FireBug with its plethora of functions is indispensable for any web developer. In my mind it's clear that you never even looked at it.
FireBug is not for ajax only. And as another poster noted not everyone has the freedom or willingness to use 3rd party ajax-frameworks.
Re:Exellent tool but, but not for web developers (Score:5, Informative)
Re:Exellent tool but, but not for web developers (Score:-1)
> increase productivity? Today, for example, I needed to find out why a certain
> element in a layout was screwing up the design. All I needed to do was turn on
> Firebug's inspector, click the element, and read through the list of specific
> CSS lines that affected that element, and there it was! Total time wasted
> - 3 minutes.
It's just I would think that increased productivity and time wasted are contradictions and to increase productivity you should stop wasting time.
10 css errors on this page (Score:3, Interesting)
Between firebug and the html validator extension (requires html validator) http://www.htmlvalidator.com/firefoxext.php [htmlvalidator.com] you can quickly pick up and find the errors on the page.
Re:10 css errors on this page (Score:4, Informative)
This addon does not appear to be Free (as in speech) and also only runs on Windows.
I much prefer HTML Validator [skynet.be]. I find both the Tidy and W3C validators incredibly useful. The Tidy function to clean up existing markup is also rather handy.
Venkman (Score:0)
Re:Venkman (Score:5, Informative)
Not only for development (Score:5, Interesting)
Furthermore, the JavaScript console can be very helpful for those starting to learn JavaScript, like how the Python console is for Python beginners.
Re:Not only for development (Score:3, Informative)
http://www.squarefree.com/bookmarklets/webdevel.h
These also come in handy:
http://www.squarefree.com/bookmarklets/zap.html [squarefree.com]
Zap Style Sheets can make myspace quite a lot easier to read.
Re:Not only for development (Score:1)
I'm actually making an HTML/JS/CSS etc Sandbox that i can hook onto a website so i can play around with things.
Still needs alot of testing though, and sadly i don't have alot of free-time just now.
Just when i managed to get the iframing to work!
Re:Not only for development (Score:2)
I also like it when I come to pages and see the little red error, so I can tell who spends time on their script.
This is an awesome tool and I always recommend it to ANYONE who is doing any JavaScript development.
Re:Not only for development (Score:1)
About as close as you are going to get at the moment. I wish for it too.
Something to think about: build you page in Firefox and get it perfect there, only then should you try to go out of your way to make it work ok in IE (much easier than the other way around).
Can Firebug help debug performance problems? (Score:-1, Redundant)
AJAX applications just aren't solid or stable, for the most part. We tried to integrate a number of them into our network here, and frankly each attempt went terribly. I'd like to think it was just one application vendor or AJAX toolkit that was problematic, but that wasn't the case.
We found a number of common problems with every AJAX application we tried. Just for the record, the applications included three CMS systems, a Web-based email system, two groupware systems, and three Web forums.
The first major problem with one of resource usage, on both the client-side and the server-side. Client-side, many AJAX applications consume far too much CPU time. From our investigation, it was due to the use of poor JavaScript algorithms that'd consume 100% of the CPU in some cases, for minutes on end. The applications "worked", in that they'd provide the correct result. It'd just take them far too long to get it done.
On the server-side, they'd again result in excessive CPU and RAM consumption. For one of the Webmail systems, we could only handle a fifth (yes, 20%) of what our old Perl-based system could. And that was on a quad-core Opteron system with 8 GB of RAM! The Perl-based system was on a couple of 200 MHz Pentium systems, each with 128 MB of RAM. Even after assistance from the AJAX-based Webmail system's vendor, we were only able to handle roughly 90% of the number of transactions of our older system.
The second major problem is that of usability. Many of the AJAX apps we tried didn't play well with browser tabs, for instance. Some even fucked around with text input areas, resulting in copy-and-pasting no longer working. One application even prevented the text within a text field from being highlighted! We thought these problems may be browser-specific incompatibilities, be we ran into this same problem with Firefox, Safari, Opera, and even IE6! After talking with the vendor, they admitted these were known problems, and no solutions were presently available.
The third major problem is a lack of quality. Many AJAX applications are poorly coded and poorly designed. I think the main reason for that is because it's such an unstructured technology. Even competent software developers run into problems that cannot be solved easily, and thus must resort to hackish techniques to overcome these inherent problems.
The fourth major problem was that the users hated the systems. Of the few systems we managed to roll out successfully, the users absolutely hated them. Their complaints were a combination of the above three factors. The AJAX applications would not do what the user wanted. The AJAX applications did not conform to common practices (eg. copy-and-paste, textbox text selection, etc.). The AJAX applications ran far too slowly, even on fast client machines. The AJAX applications just plain didn't work!
All of our AJAX trials were abysmal failures. That's why we're sticking with the existing Perl- and Java-based systems that we currently use. They perform far better on much fewer resources, actually do what the users want, avoid violating the most common of conventions, and they do what they're supposed to. I'm sorry to say it, but AJAX might just be the worst technology I have ever had to deal with.
http://it.slashdot.org/comments.pl?sid=215452&cid
Re:Can Firebug help debug performance problems? (Score:0)
Re:Can Firebug help debug performance problems? (Score:0)
Re:Can Firebug help debug performance problems? (Score:2)
The theme that Ajax/Web 2.0 (cue violins) have too high glitz to function ratio is not unwarrented, repetitive cut&paste postings does obscure that point.
Re:Can Firebug help debug performance problems? (Score:2)
There is. It's called Firebug.
Re:Can Firebug help debug performance problems? (Score:1)
yes.
there is a button called "Profile". you click that, run your script, then click "Profile" again, and a list of functions and how much time they took will show up.
Very Useful (Score:3, Insightful)
firebug rocks (Score:1)
Firebug ROCKS!!!! (Score:2)
Good timing (Score:2)