new mw.Debug()
#
Debug toolbar.
Enabled server-side through $wgDebugToolbar
.
- Since:
- 1.19
- Source:
Debug toolbar.
Properties
data :Objectstatic
#
Object containing data for the debug toolbar.
Type:
- Object
- Source:
Object containing data for the debug toolbar.
Methods
buildConsoleTable() → {jQuery}static
#
Build the console panel.
buildHtml()static
#
Construct the HTML for the debugging toolbar.
- Source:
Construct the HTML for the debugging toolbar.
init(dataopt)static
#
Initialize the debugging pane.
Shouldn't be called before the document is ready (since it binds to elements on the page).
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
Object |
<optional> |
Defaults to 'debugInfo' from mw.config |
- Source:
Initialize the debugging pane.
switchPane(e)static
#
Switch between panes.
Should be called with an HTMLElement as its thisArg, because it's meant to be an event handler.
TODO: Store cookie for last pane open.
Parameters:
Name | Type | Description |
---|---|---|
e |
jQuery.Event |
- Source:
Switch between panes.