Skip to content

DebugController.set method

DebugController › set

Set debug namespaces, replacing all previous configurations.

Signature:

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

Parameters:

ParameterTypeDescription
namespacesstring | string[]String or array of namespace patterns

Returns: void

Example:

window.DEBUG.set(['foo-bar', 'baz-qux:*', '-lorem-ipsum']); // Enable 'foo-bar' and 'baz-qux:*', explicitly disable 'lorem-ipsum'
window.DEBUG.set('foo-bar,baz-qux:*,-lorem-ipsum'); // Same thing using comma-separated string
window.DEBUG.set('*'); // Enable all debug messages
window.DEBUG.set(''); // Disable all debug messages