Skip to content

DebugStack

Inherits: LibTSMModule

Functions

AddShortenPattern

lua
function Lua.DebugStack.AddShortenPattern(pattern, replacement)

Adds a pattern and replacement string for shortening the names of addons stack frames.

Parameters:

NameTypeDescription
patternstringThe search pattern
replacementstringThe replacement string

GetLocation

lua
function Lua.DebugStack.GetLocation(targetLevel, thread)
  -> string?

Gets the location string for the specified stack level.

Parameters:

NameTypeDescription
targetLevelnumberThe stack level to get the location for
threadthreadThe thread to get the location for

Returns:

TypeDescription
string?