Skip to content

debug

The debuggers of @mnaoumov/obsidian-lib’s own modules.

Function Description
getObsidianLibDebugger Returns a debugger for one of this library’s own modules. The namespace is always under OBSIDIAN_LIBRARY_NAME, whether or not initPluginContext has run yet, so a namespace a guide tells users to enable (obsidian-lib:PluginApi) means the same thing in a test, in a script and in a plugin. The generic modules of @mnaoumov/typescript-lib log under the namespace initPluginContext injects into the generic Library.
showInitialDebugMessage Shows an initial debug message, telling the user how to disable the plugin’s debug messages. Prints nothing while the plugin’s debug messages are disabled, so a plugin in its default configuration writes nothing to the console.