> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/perl6-rosettacode/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/perl6-rosettacode/programming_tasks/s/stack_traces.md).

# Stack traces

```perl
sub g { say Backtrace.new.concise }
sub f { g }
sub MAIN { f }
```

#### Output:

```
  in sub g at bt:1
  in sub f at bt:2
  in sub MAIN at bt:3
```
