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[]): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| namespaces | string | 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` pluginwindow.DEBUG.disable('foo-bar:*'); // hide all debug messages from the `foo-bar` plugin submoduleswindow.DEBUG.disable(['foo-bar', 'baz-qux']); // disable multiple namespaceswindow.DEBUG.disable('foo-bar,baz-qux'); // disable multiple namespaces using comma-separated stringwindow.DEBUG.disable('*'); // disable all debug messages