stacktrace

Types

参数数量/列表

pub type Arity {
  Arity(Int)
  Args(List(dynamic.Dynamic))
}

Constructors

位置

pub type Location {
  Location(file: option.Option(String), line: option.Option(Int))
}

Constructors

栈帧

pub type StackFrame {
  StackFrame(
    module: String,
    function: String,
    arity: Arity,
    location: Location,
  )
}

Constructors

  • StackFrame(
      module: String,
      function: String,
      arity: Arity,
      location: Location,
    )

    module: 模块

    func: 函数

    arity: 参数数量/列表

    location: 位置

栈帧列表

pub type StackFrameList =
  List(StackFrame)

Values

pub fn from_dynamic(
  stacktrace: dynamic.Dynamic,
) -> List(StackFrame)

从动态值获取栈帧列表

✨ Search Document