Break On ...

From FirebugWiki

(Difference between revisions)
Jump to: navigation, search
(Added description for Break On ... feature)
(Shortcut for Break On ... feature added)
(One intermediate revision not shown)
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:200px;" | Option || Description
+
! 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->Break On Attribute Change || Stops JavaScript execution when changing an attribute of the specified HTML element
+
| [[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->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 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->Break On Element Removal || Stops JavaScript execution when the specified HTML element is deleted
+
| [[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 XHR || Stops JavaScript execution on a specific XMLHttpRequest
+
| 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
|}
|}
 +
 +
The Break On ... feature of a panel can be enabled and disabled via a shortcut (default: <code class="key">Ctrl</code> + <code class="key">Alt</code> + <code class="key">B</code>).

Revision as of 08:22, 21 May 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 Break on all errors button.png Stops JavaScript execution on all JavaScript errors
Break On Mutate HTML Panel Break On Mutate Button.png 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 Break On Next Button.png 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 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 XHR Stops JavaScript execution on a specific XMLHttpRequest
Break On Cookie Change Cookies Panel 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

The Break On ... feature of a panel can be enabled and disabled via a shortcut (default: Ctrl + Alt + B).

Personal tools