Chromebug

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
(Added a note to point out that you should have chrome bug and firebug versions that are identical.)
m (Changed code blocks to use syntax highlighting)
 
(5 intermediate revisions not shown)
Line 1: Line 1:
 +
== Introduction ==
 +
Chromebug is the Firebug source adapted to work on the entire 'chrome' level of XUL. It looks like Firebug in a detached window with some extra stuff to deal with multiple windows. Chromebug is 100% XUL/HTML/CSS/Javascript and works only on XUL based applications.
Chromebug is the Firebug source adapted to work on the entire 'chrome' level of XUL. It looks like Firebug in a detached window with some extra stuff to deal with multiple windows. Chromebug is 100% XUL/HTML/CSS/Javascript and works only on XUL based applications.
Line 4: Line 6:
== Installation ==
== Installation ==
-
*[http://getfirebug.com/releases/firebug/1.5X Install Firebug 1.5 first]
 
*[http://getfirebug.com/releases/chromebug Install the latest Chromebug]
*[http://getfirebug.com/releases/chromebug Install the latest Chromebug]
 +
*[http://getfirebug.com/releases/firebug/ Install an exactly matching version of Firebug]
Note that at least during this development period it is important that your version of Firebug be synchronized with your Chromebug version.
Note that at least during this development period it is important that your version of Firebug be synchronized with your Chromebug version.
Line 12: Line 14:
To start Chromebug then firefox use:
To start Chromebug then firefox use:
-
  firefox.exe -chromebug
+
<syntaxHighlight lang="bash">
 +
firefox.exe -chromebug
 +
</syntaxHighlight>
 +
 
To start Chromebug then thunderbird use:
To start Chromebug then thunderbird use:
-
  thunderbird.exe -chromebug
+
<syntaxHighlight lang="bash">
 +
thunderbird.exe -chromebug
 +
</syntaxHighlight>
 +
 
etc.
etc.
 +
 +
For Firefox 4.0 you may want to add
 +
<syntaxHighlight lang="bash">
 +
-purgecaches
 +
</syntaxHighlight>
 +
 +
to see changes in your extension code.
== Basics ==
== Basics ==
Line 22: Line 37:
Most of the time you can just use the context menu to set the tabs to the content you want to explore.
Most of the time you can just use the context menu to set the tabs to the content you want to explore.
 +
 +
== Tools ==
 +
 +
=== Gijs Kruitbosch's Chrome list ===
 +
 +
This tool seems to be documented separately at this web site:  http://www.gijsk.com/mozilla/chromelist/
Or you can use the inspect feature to select the context.
Or you can use the inspect feature to select the context.

Latest revision as of 08:09, 18 May 2011

Contents

[edit] Introduction

Chromebug is the Firebug source adapted to work on the entire 'chrome' level of XUL. It looks like Firebug in a detached window with some extra stuff to deal with multiple windows. Chromebug is 100% XUL/HTML/CSS/Javascript and works only on XUL based applications.

[edit] Installation

Note that at least during this development period it is important that your version of Firebug be synchronized with your Chromebug version.

[edit] Running Chromebug

To start Chromebug then firefox use:

firefox.exe -chromebug

To start Chromebug then thunderbird use:

thunderbird.exe -chromebug

etc.

For Firefox 4.0 you may want to add

-purgecaches

to see changes in your extension code.

[edit] Basics

The Console, HTML, CSS, Script, DOM tab row shows the data for the nsIDOMWindow selected by the "context" menu. So for example if you set the context to browser.xul, the HTML you see will be the HTML for firefox's window.

Most of the time you can just use the context menu to set the tabs to the content you want to explore.

[edit] Tools

[edit] Gijs Kruitbosch's Chrome list

This tool seems to be documented separately at this web site: http://www.gijsk.com/mozilla/chromelist/

Or you can use the inspect feature to select the context.

Personal tools