getDebugger
Returns a debugger instance with a log function that includes the caller’s file name and line number.
Import:
import { getDebugger } from 'obsidian-dev-utils/debug';Signature:
function getDebugger(namespace: string, framesToSkip: number): debug.DebuggerParameters:
| Parameter | Type | Description |
|---|---|---|
namespace | string | The namespace for the debugger instance. |
framesToSkip | number | The number of frames to skip in the stack trace. |
Returns: debug.Debugger — A debugger instance with a log function that includes the caller’s file name and line number.