Skip to content

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.Debugger

Parameters:

ParameterTypeDescription
namespacestringThe namespace for the debugger instance.
framesToSkipnumberThe 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.