RedBlueGreen SmallMediumLarge WideNarrowFluid
Firebug
Written by Administrator   
Saturday, 28 November 2009 08:39

firebug logo

“What is Firebug?” you may ask. Firebug is an extension for Firefox used for debugging and optimizing CSS, JavaScript, HTML…and more. Firebug is an excellent Firefox browser extension that is great for troubleshooting, editing, monitoring, and debugging. It is free and open source.

10 things about firebug

  1. You can monitor the load time of your JavaScript by going to the “Net” tab. Bonus: Firebug colors requests that are served from your cache in a lighter gray so you can optimize your cache use.
  2. Right click on a breakpoint to add a condition.
  3. Using console.log to print messages to the console is great, but did you know you can group messages by calling ‘console.group(”groupname”)’ and ‘console.groupEnd()’?
  4. Use console.profile() and console.profileEnd() to report on time spent in each function hit, or you could just use the Profiler.
  5. If you mouse over a color in the CSS tab, it shows you a swatch of that color!
  6. Not only can you see the HTML of your page change in real-time, you can change it whenever you want.
  7. If you are using a very high resolution and Firebug is hard to read, just click on the bug and select ‘Text Size > Increase Text Size’
  8. You can use the command ‘debugger;’ within your JavaScript to have Firebug stop execution at that point in the code and bring up the Firebug panel.
  9. Log calls to specific function by simply right clicking the function name in the Script section and choosing: ‘log calls to “myFunction”‘.
  10. You can use Firebug in IE, Opera, and Safari (limited functionality) by downloading Firebug Lite!!

Useful Firebug resources and tutorials

  1. Get Firebug
  2. Firebug Documentation
  3. Overview of Firebug - a very good and detailed overview written by Michael Sync.
  4. Better JavaScript debugging in 15 mins by Digital Media Minute.
  5. Firebug Tips and Tricks by seifi.org
  6. 10 Things you didn’t know about Firebug by Eric Wendelin
  7. How to debug PHP with Firebug by Mathias Bank
  8. A Firebug Tutorial by evotech.net
  9. Web Development with Firebug by Joe Hewitt (video).
  10. Intro to debugging AJAX Applications with Firebug (video)
  11. Introduction to CSS editing using Firebug (video)
  12. Debugging with Firebug by Joe Hewitt
  13. Using Commandline API in Firebug by Michael Sync
  14. Script Tab: JavaScript Tutorial by Michael Sync
  15. Net, CSS, and DOM Tabs by Michael Sync (at the bottom of this article you will find an index of all the article that Michael has written about Firebug).
  16. About Firebug by Aptana
  17. Firebug Working Group
  18. Firebug Development Blog
  19. Firebug Discussion group
  20. A place to report Firebug bugs
  21. Firebug Internals
  22. How to Speedup Firefox if you have Firebug
Comments (0)
 


Related Post

Powered By relatedArticle