This documentation is for the old version. Go to the latest Upload Suite docs

debug.mode Property

Gets or sets an array of available debug modes which will be used if the level is greater than 0.

Syntax

JavaScript Initialize
$au.debug({
    //...other params...
    mode: ['popup', 'console', 'alert'],
    //...other params...
})
Get/Set Value at Runtime
$au.debug().mode(value);
value = $au.debug().mode();

Property Value

Type: Array

The string containing a debug mode or an array of available debug modes. The following values are supported:

ValueDescription
popupAll the messages will be shown in a popup window.
consoleAll the messages will be logged in a browser console (e.g. Firebug) if it is available.
alertAll the messages will be shown in alerts.
Note

If the array of debug modes is specified, it is used as follows. When the debug class is about to display a message, it uses the first mode specified in this array. If it is failed, the next mode is used until the message is displayed correctly.

Default value is ['popup', 'console', 'alert'].

See Also

Manual