Expand all

mw.Debug

Access the debug toolbar. Enabled server-side through $wgDebugToolbar.

Properties

$container :jQuerystatic #

Toolbar container element.

Type:

Source:
Toolbar container element.

data :Objectstatic #

Object containing data for the debug toolbar.

Type:

Source:
Object containing data for the debug toolbar.

Methods

buildConsoleTable() → {jQuery}static #

Build the console panel.

Source:

Returns:

Console panel

Type
jQuery
Build the console panel.

buildDebugLogTable() → {jQuery}static #

Build legacy debug log pane.

Source:

Returns:

Type
jQuery
Build legacy debug log pane.

buildHtml()static #

Construct the HTML for the debugging toolbar.

Source:
Construct the HTML for the debugging toolbar.

buildIncludesPane() → {jQuery}static #

Build included files pane.

Source:

Returns:

Type
jQuery
Build included files pane.

buildQueryTable() → {jQuery}static #

Build query list pane.

Source:

Returns:

Type
jQuery
Build query list pane.

buildRequestPane() → {jQuery}static #

Build request information pane.

Source:

Returns:

Type
jQuery
Build request information pane.

init([data])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.