DebugController.set method
DebugController › set
Set debug namespaces, replacing all previous configurations.Signature:
set(namespaces: string | string[]): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| namespaces | string | 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 stringwindow.DEBUG.set('*'); // Enable all debug messageswindow.DEBUG.set(''); // Disable all debug messages