Firebug (software)

From Wikipedia, the free encyclopedia
  (Redirected from Firebug (Firefox extension))
Jump to: navigation, search


Firebug
Firebug logo.png
Firebug extension screenshot.png
Firebug 2.0.1 running in Firefox 30.0 under Windows 7 with the HTML panel active on the main Wikipedia page.
Original author(s) Joe Hewitt
Developer(s) Firebug Working Group
Stable release 2.0.6[1] / November 5, 2014; 49 days ago (2014-11-05)
Written in JavaScript, XUL, CSS
Operating system Cross-platform
Type Mozilla extension[2]
License New BSD License[3]
Website getfirebug.com

Firebug is a free and open-source[4] web browser extension for Mozilla Firefox[2] that facilitates the live debugging, editing, and monitoring of any website's CSS, HTML, DOM, XHR, and JavaScript.[5]

Firebug is licensed under the BSD license[3] and was initially written in January 2006 by Joe Hewitt, one of the original Firefox creators.[6] The Firebug Working Group oversees the open source development and extension of Firebug. It has two major implementations: an extension for Mozilla Firefox and a bookmarklet implementation called Firebug Lite[7] which can be used with Google Chrome.[8]

In addition to debugging web pages, Firebug is a useful tool for web security testing[9] and web page performance analysis.[10]

Version history[edit]

Version 2.0[edit]

Firebug 2.0 introduced many new features to the Firebug extension including JavaScript syntax highlighting, pretty print for minified JavaScript code, and a DOM Event Inspector to handle all event handlers on a web page. Additionally, users can search for page elements using CSS selectors in the search bar. The debugging tool now allows users to inspect JavaScript expressions as they are evaluated. Moreover, users can inspect values returned from JavaScript functions. It also adds the ability to create new HTML attributes for existing HTML elements.[11]

Version 3.0[edit]

On November 10, 2014, Firebug 3.0 was announced and an alpha was made available to the public.[12] The next version will feature a new theme and will focus on user experience.

Features[edit]

Firebug makes changes immediately and gives constant feedback to the user. All editors in Firebug support autocomplete.[11]

The Firebug command line accepts commands written in JavaScript. The result of executing each command is displayed in the console, appearing as hyperlinks. The Firebug application contains multiple windows, splitting related features to a common window.[13] Firebug also allows users to view the download time for individual files. It separates different types of objects, such as JavaScript files and images, and can determined which files are loaded from a browser's cache. Firebug also features the ability to examine HTTP headers and time stamps relative to when an HTTP request is made.[14] Its net panel can monitor URLs that the browser requests, such as external CSS, JavaScript, and image files.

HTML and CSS[edit]

The HTML and CSS tools allow for the inspection and editing of HTML and CSS elements on a web page.[15] Later versions of Firebug allow users to see live changes to the CSS.[11] Visualization of CSS elements is shown while inspecting HTML elements. The Firebug layout tab is used to display and manipulate CSS property values. Furthermore, users can click on any visible HTML elements on a web page to access its CSS property values.[16]

JavaScript Console[edit]

Firebug's script tab enables users to set breakpoints and step through lines of code.[17] Additionally, Firebug can navigate directly to a line of JavaScript code, watch expressions, call stacks, and launch the debugger in the event an error occurs during execution. Firebug can also log errors. Logging uses a Firebug JavaScript API. Firebug's JavaScript panel can log errors, profile function calls, and enable the developer to run arbitrary JavaScript. Firebug allows users to run JavaScript code through the command line and allows the user to log errors that occur in the JavaScript, CSS, and XML. Firebug provides a separate text editor to modify the JavaScript and see immediate results on the user's browser.

As provided in an update, the JavaScript command line features an autocomplete function. The text editor also provides the ability to write full functions. Firebug requires a user to refresh a web page in the event of a crash.

Extensions[edit]

Many extensions have been made to enhance the Firebug experience. Since Firebug is open source, users can contribute their own extensions to the Firebug community.[18]

See also[edit]

References[edit]

  1. ^ "Firebug 2.0.6". getfirebug.com blog. 2014-11-05. 
  2. ^ a b Mozilla Firefox Add-on
  3. ^ a b Overview of Firebug
  4. ^ Firebug on GitHub
  5. ^ Firebug Home Page
  6. ^ O'Reilly Performance Tools: Appendix - Even Faster Websites
  7. ^ Firebug Lite Homepage
  8. ^ Firebug Lite for Chrome
  9. ^ Hope, Paco; Walther, Ben (2008), Web Security Testing Cookbook, Sebastopol, CA: O'Reilly Media, Inc., ISBN 978-0-596-51483-9 
  10. ^ "High Performance Web Sites", Steve Souders, CACM, Dec, 2008.
  11. ^ a b c Odvarko, Jan. "Firebug 2.0 Release". Firebug Working Group. Retrieved 10 June 2014. 
  12. ^ Odvarko, Jan. "Firebug 3.0 The Next Generation". Firebug Working Group. Retrieved 10 November 2014. 
  13. ^ Hewitt, J. (2007). Ajax debugging with firebug. Dr.Dobb's Journal, 32(2), 22-26. Retrieved from http://search.proquest.com.proxy.lib.umich.edu/docview/202712580?accountid=14667
  14. ^ What is Firebug?
  15. ^ Salkosuo, Sami. "Debug and tune applications on the fly with Firebug". IBM Developer Works. Retrieved 6 May 2008. 
  16. ^ Zukerman, Erez. "Debug Web Pages in Firefox With Firebug". PC World. Retrieved 6 January 2012. 
  17. ^ Suehring, Steve. "Identify JavaScript Problems with Firebug". Dummies. 
  18. ^ List of Known Firebug Extensions

Further reading[edit]

External links[edit]