Skip to main content

function

format_system_stack

format_system_stack[MAX_STACK_SIZE: Int = 128]() -> String

Formats a stack trace using the system's backtrace call.

Parameters:

  • MAX_STACK_SIZE (Int): The maximum number of function calls to report in the stack trace.

Returns:

The system stack trace as a formatted string, with one indented call per line.