Skip to content

DebugController.set

DebugController › set

Type: (namespaces: string | string[]) => void

Set debug namespaces, replacing all previous configurations.

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