AsHTML

NAME

Backtrace::AsHTML - Displays back trace in HTML

SYNOPSIS

use Backtrace::AsHTML;
my $trace = Backtrace.new;
  my $html  = $trace.as-html;

DESCRIPTION

Backtrace::AsHTML adds as-html method to Backtrace which displays the back trace in beautiful HTML, with code snippet context.

<img src="https://i.gyazo.com/6ac7f82ef6fb0a05d7de9a11dbdcaa0b.png">

This library is inspired by Devel::StackTrace::AsHTML of perl5 and much of code is taken from that.

METHODS

  • as-html

as-html shows the fully back trace in HTML.

This method will be added into Backtrace class automatically when used this.

TODO

  • show lexical variables for each frames (How?)

  • show arguments for each frames? (How??)

AUTHOR

moznion <[email protected]>

COPYRIGHT AND LICENSE

Copyright 2015 moznion
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.

And license of the original perl5's Devel::StackTrace::AsHTML is

This library is free software; you can redistribute it and/or modify
    it under the same terms as Perl itself.

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.