Skip to content

DebugController.disable method

DebugController › disable

Disable specific debug namespaces. Disabled namespaces take precedence over enabled ones when there's a conflict.

Signature:

disable(namespaces: string | string[]): void

Parameters:

ParameterTypeDescription
namespacesstring | string[]Single namespace string or array of namespace strings to disable

Returns: void

Example:

window.DEBUG.disable('foo-bar'); // hide all debug messages from the `foo-bar` plugin
window.DEBUG.disable('foo-bar:*'); // hide all debug messages from the `foo-bar` plugin submodules
window.DEBUG.disable(['foo-bar', 'baz-qux']); // disable multiple namespaces
window.DEBUG.disable('foo-bar,baz-qux'); // disable multiple namespaces using comma-separated string
window.DEBUG.disable('*'); // disable all debug messages