Backtrace type

Represents stack trace

Example

Backtrace().frames.each(echo)
# {ip=4770, closure=<UserDefinedMethod <anonymous> at /etc/ngs/bootstrap.ngs:3>}
# {ip=4153, closure=<UserDefinedMethod bootstrap_exception_catch_wrapper at /etc/ngs/bootstrap.ngs:205>}
# {ip=3583, closure=<UserDefinedMethod bootstrap at /etc/ngs/bootstrap.ngs:111>}
# {ip=116587, closure=<UserDefinedMethod <anonymous> at <command line -pi switch>:2>}

Constructors

Backtrace()
Backtrace constructor

Methods

init(lines:Lines, backtrace:Backtrace, parent_backtrace:Any=null) Source: stdlib.ngs:6089
Convert Backtrace to human-readable format

Example

Lines(bt).echo()