getDebugger
Returns a debugger instance with a log function that includes the caller’s file name and line number.
Import:
import { getDebugger } from '@mnaoumov/typescript-lib/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.