DebugController.enable method
DebugController › enable
Enable specific debug namespaces. Note that explicitly disabled namespaces (prefixed with '-') will remain disabled.Signature:
enable(namespaces: string | string[]): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| namespaces | string | string[] | Single namespace string or array of namespace strings to enable |
Returns: void
Example:
window.DEBUG.enable('foo-bar'); // show all debug messages from the `foo-bar` pluginwindow.DEBUG.enable('foo-bar:obsidian-dev-utils:*'); // show all debug messages from the `obsidian-dev-utils` library within the `foo-bar` pluginwindow.DEBUG.enable('foo-bar:*'); // show all debug messages from the `foo-bar` plugin and its submoduleswindow.DEBUG.enable('*:obsidian-dev-utils:*'); // show all debug messages for the `obsidian-dev-utils` library within any pluginwindow.DEBUG.enable(['foo-bar', 'baz-qux']); // enable multiple namespaceswindow.DEBUG.enable('foo-bar,baz-qux'); // enable multiple namespaces using comma-separated stringwindow.DEBUG.enable('*'); // show all debug messages