Appearance
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:
| Name | Type | Description |
|---|---|---|
pattern | string | The search pattern |
replacement | string | The replacement string |
GetLocation
lua
function Lua.DebugStack.GetLocation(targetLevel, thread)
-> string?Gets the location string for the specified stack level.
Parameters:
| Name | Type | Description |
|---|---|---|
targetLevel | number | The stack level to get the location for |
thread | thread | The thread to get the location for |
Returns:
| Type | Description |
|---|---|
string? |