Firebug 2.0 official release, Web development plugin

Source: Internet
Author: User
Tags closing tag

    • Firebug 2.0 is compatible with Firefox 30–32

Firebug 2 UI:

The screenshot shows Win OS theme other OSes (Linux and MAC) has own custom theme.

New Features

Firebug 2 introduces many new features and bug fixes also because we completely removed dependency on the ancient Firefox Debugging engine (aka JSD1) and incorporated new debugging engine known as JSD2.

  • Syntax highlighting
  • Pretty Print
  • DOM Events Inspector
  • Searching in the HTML Panel
  • Code Auto Completion
  • JavaScript Expressions Inspector
  • Console Log Grouping
  • Inspect JavaScript Function Return Value
  • Show/hide Firebug Panels
  • Displaying Original CSS Color Values
  • Quickly Create new HTML attribute
  • Inspect Registered Mutation observers

Syntax highlighting

One of the most visible new features are probably that the Script panel supports JavaScript syntax highlighting.

Syntax coloring is also there if your edit HTML as a free text by clicking on the Edit button in the toolbar. The same for CSS source edit mode ...

Pretty Print

The Script panel also supports pretty-printing and if you deal with minified JavaScript Code "ll find this feature extr Emely useful.

DOM Events Inspector

Firebug 2 integrates existing Eventbug extension and introduces new Events side panel within the existing HTML PA Nel. This panel lists all of the event handlers on the page grouped by event type for the currently selected DOM element. The panel is nicely integrated with other Firebug panels and allows to quickly find out which HTML element is associated W ITH specific event listener or see the JavaScript source code (read more).

Searching in HTML Panel

Search in the HTML panel have been improved and the user can now use CSS selectors or regular Expressions To find specific elements.

Code Auto Completion

Code auto-completion system have been improved across Firebug 2 UI on several places. It's now available in the Command Editor (within the Console panel) where can press the <tab> key to OP En a little completion popup window.

Auto completion works even in Breakpoint-condition popup dialog where it offers variables in the current scope.

You can enjoy auto-completion if editing HTML attributes (works for SVG attributes too) and also within HTML style Attri Bute. All these little details do Firebug and awesome tool to use!

JavaScript Expressions Inspector

When debugging and stepping through your code you can quickly inspect and explore details of all JavaScript expression you See in the Script panel. Just hover your mouse over the expression or selected piece of code and see the result in the ToolTip.

You can also right click on a expression (or again on the current selection) and pick use Command line or inspect in DOM Panel actions.

Console Log Grouping

There is new option in the console panel, allows to group console logs coming in a row from the same Efault).

Inspect JavaScript Function Return Value

This feature allows to examine and modify return value of a JavaScript function. See an example:

function myFunction() {
return foo();
}

The usual problem in other debuggers and tools are is what to examine the return value of foo() . Firebug allows that by stepping through a return statement and displaying the value within the Watch side panel. It even allows modify the return value through the Watch panel just like other values (read more).

Show/hide Firebug Panels

One change we introduced in Firebug 2 is the the the-the-hide/show individual panels. Check out the next screenshot this depicts how it's done.

Displaying Original CSS Color Values

Another nice enhancement allows displaying original CSS color values. There is a new option Colors as authored in the CSS panel that allows displaying CSS color values as they were de Fined. This makes it easier to compare the styles interpreted by the browser with the ones inside the original CSS source file. While the still has the possibility to switch to hexadecimal, RGB or HSL formatting.

Quickly Create new HTML attribute

There is a new-to-quickly create new attributes for HTML elements. All your need to do are hover mouse cursor over the closing arrow bracket of an element you want to add a new attribute to. See, the cursor changes it shape into a hand.

Click on the closing tag to open a inline editor and start typing an attribute name.

The rest works as usual. After you typed the name Press the TAB key and type the attribute value.

Inspect Registered Mutation observers

The existing getEventListeners() command (see a Firebug tip) have been extended and it now displays also registered mutation observers FO R given element.

You can use the This test page to try it yourself.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.