Break On ...
From FirebugWiki
(Difference between revisions)
Sebastianz (Talk | contribs) (Added description for Break On ... feature) |
Sebastianz (Talk | contribs) (Added Break On Cookie Change and improved formatting) |
||
| Line 4: | Line 4: | ||
{| class="wikitable" style="width: 100%; vertical-align:top;" | {| class="wikitable" style="width: 100%; vertical-align:top;" | ||
|- bgcolor=lightgrey | |- bgcolor=lightgrey | ||
| - | ! style="width:220px;" | Term || style="width:100px;" | Panel || style="width: | + | ! style="width:220px;" | Term || style="width:100px;" | Panel || style="width:300px;" | Option || Description |
|- | |- | ||
| [[Console Panel#Break On All Errors|Break On All Errors]] || [[Console Panel]] || [[Image:Break_on_all_errors_button.png]] || Stops JavaScript execution on all JavaScript errors | | [[Console Panel#Break On All Errors|Break On All Errors]] || [[Console Panel]] || [[Image:Break_on_all_errors_button.png]] || Stops JavaScript execution on all JavaScript errors | ||
| Line 10: | Line 10: | ||
| [[HTML Panel#Break On Mutate|Break On Mutate]] || [[HTML Panel]] || [[Image:Break_On_Mutate_Button.png]] || Stops JavaScript execution on any HTML mutation | | [[HTML Panel#Break On Mutate|Break On Mutate]] || [[HTML Panel]] || [[Image:Break_On_Mutate_Button.png]] || Stops JavaScript execution on any HTML mutation | ||
|- | |- | ||
| - | | [[HTML Panel#Node View|Break On Attribute Change]] || [[HTML Panel]] || Node context menu | + | | [[HTML Panel#Node View|Break On Attribute Change]] || [[HTML Panel]] || Node context menu > ''Break On Attribute Change'' || Stops JavaScript execution when changing an attribute of the specified HTML element |
|- | |- | ||
| - | | [[HTML Panel#Node View|Break On Child Addition or Removal]] || [[HTML Panel]] || Node context menu | + | | [[HTML Panel#Node View|Break On Child Addition or Removal]] || [[HTML Panel]] || Node context menu > ''Break On Child Addition or Removal'' || Stops JavaScript execution when adding or removing a child of the specified HTML element |
|- | |- | ||
| - | | [[HTML Panel#Node View|Break On Element Removal]] || [[HTML Panel]] || Node context menu | + | | [[HTML Panel#Node View|Break On Element Removal]] || [[HTML Panel]] || Node context menu > ''Break On Element Removal'' || Stops JavaScript execution when the specified HTML element is deleted |
|- | |- | ||
| [[Script Panel#Break On Next|Break On Next]] || [[Script Panel]] || [[Image:Break_On_Next_Button.png]] || Stops JavaScript execution on the next executed line | | [[Script Panel#Break On Next|Break On Next]] || [[Script Panel]] || [[Image:Break_On_Next_Button.png]] || Stops JavaScript execution on the next executed line | ||
| Line 22: | Line 22: | ||
| [[Net Panel#Break On XHR|Break On XHR]] || [[Net Panel]] || [[Image:Break_On_XHR_Button.png]] || Stops JavaScript execution on all XMLHttpRequests | | [[Net Panel#Break On XHR|Break On XHR]] || [[Net Panel]] || [[Image:Break_On_XHR_Button.png]] || Stops JavaScript execution on all XMLHttpRequests | ||
|- | |- | ||
| - | | Break On Specific XHR || [[Net Panel]] || Click on Breakpoint Column or Request context menu | + | | Break On Specific XHR || [[Net Panel]] || Click on Breakpoint Column or Request context menu > ''Break On XHR'' || Stops JavaScript execution on a specific XMLHttpRequest |
| + | |- | ||
| + | | [[Cookies Panel#Break On Cookie Change|Break On Cookie Change]] || [[Cookies Panel]] || [[File:BreakOnCookieChangeButton.png]] || Stops JavaScript execution on all cookie changes | ||
| + | |- | ||
| + | | Break On Specific Cookie || [[Cookies Panel]] || Click on Breakpoint Column or Cookie context menu > ''Break On '...' cookie'' || Stops JavaScript execution a specific cookie change | ||
|} | |} | ||
Revision as of 23:21, 5 February 2013
The Break On ... feature is used for debugging purposes. When a Break On ... option is enabled, Firebug stops script execution immediately when the specified event occurs.
The different panels offer different Break On ... features:
| Term | Panel | Option | Description |
|---|---|---|---|
| Break On All Errors | Console Panel | | Stops JavaScript execution on all JavaScript errors |
| Break On Mutate | HTML Panel | | Stops JavaScript execution on any HTML mutation |
| Break On Attribute Change | HTML Panel | Node context menu > Break On Attribute Change | Stops JavaScript execution when changing an attribute of the specified HTML element |
| Break On Child Addition or Removal | HTML Panel | Node context menu > Break On Child Addition or Removal | Stops JavaScript execution when adding or removing a child of the specified HTML element |
| Break On Element Removal | HTML Panel | Node context menu > Break On Element Removal | Stops JavaScript execution when the specified HTML element is deleted |
| Break On Next | Script Panel | | Stops JavaScript execution on the next executed line |
| Break On Line | Script Panel | Click on Breakpoint Column | Stops JavaScript execution on the specified line; normal type of breakpoint; offers the possibility to define break conditions |
| Break On XHR | Net Panel | | Stops JavaScript execution on all XMLHttpRequests |
| Break On Specific XHR | Net Panel | Click on Breakpoint Column or Request context menu > Break On XHR | Stops JavaScript execution on a specific XMLHttpRequest |
| Break On Cookie Change | Cookies Panel | | Stops JavaScript execution on all cookie changes |
| Break On Specific Cookie | Cookies Panel | Click on Breakpoint Column or Cookie context menu > Break On '...' cookie | Stops JavaScript execution a specific cookie change |