Chromebug
From FirebugWiki
Sebastianz (Talk | contribs) m (moved Chromebug User Guide to Chromebug: This page describes Chromebug in general and most people will just search for the word "Chromebug".) |
Sebastianz (Talk | contribs) m (Changed code blocks to use syntax highlighting) |
||
| Line 14: | Line 14: | ||
To start Chromebug then firefox use: | To start Chromebug then firefox use: | ||
| - | + | <syntaxHighlight lang="bash"> | |
| + | firefox.exe -chromebug | ||
| + | </syntaxHighlight> | ||
| + | |||
To start Chromebug then thunderbird use: | To start Chromebug then thunderbird use: | ||
| - | + | <syntaxHighlight lang="bash"> | |
| + | thunderbird.exe -chromebug | ||
| + | </syntaxHighlight> | ||
| + | |||
etc. | etc. | ||
For Firefox 4.0 you may want to add | For Firefox 4.0 you may want to add | ||
| - | + | <syntaxHighlight lang="bash"> | |
| + | -purgecaches | ||
| + | </syntaxHighlight> | ||
| + | |||
to see changes in your extension code. | to see changes in your extension code. | ||
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 -chromebugTo start Chromebug then thunderbird use:
thunderbird.exe -chromebugetc.
For Firefox 4.0 you may want to add
-purgecachesto 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.