Skip to content

getStackTrace

Gets the current stack trace as a string, excluding the current function call.

Import:

import { getStackTrace } from 'obsidian-dev-utils/error';

Signature:

function getStackTrace(framesToSkip: number): string

Parameters:

ParameterTypeDescription
framesToSkipnumberThe number of frames to skip in the stack trace.

Returns: string — A string representation of the current stack trace, excluding the current function call.