backtrace_get_frames
host callCapy
function backtrace_get_frames(max_frames : s32 = 32, skip_frames : s32 = 0) string
Description
backtrace_get_frames gets source-mapped frames for the current Capy call stack.
Set max_frames to limit the result. Set skip_frames to omit the newest frames.
Parameters
max_frames : maximum number of frames
skip_frames : number of newest frames to omit
Return Values
a backtrace string
Example
Capy
print(backtrace_get_frames(4, 0), "\n")
Output
#0 CLI at tests/doc-context.da722fc98ae248d98cb4d87be5f3dfac/example.capy:2:1