Skip to content

Instantly share code, notes, and snippets.

@kotaroito
Created June 17, 2014 01:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kotaroito/06a1b12be7a6bf9b03dc to your computer and use it in GitHub Desktop.
Save kotaroito/06a1b12be7a6bf9b03dc to your computer and use it in GitHub Desktop.
#!/usr/bin/env perl
use strict;
use warnings;
use Devel::StackTrace::WithLexicals;
use Devel::StackTrace::AsHTML;
my $trace = Devel::StackTrace::WithLexicals->new;
my $html = $trace->as_html;
open(my $fh, '>', './tmp/stacktrace.html') or die $!;
print $fh $html;
close $fh;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment