# NAME

DB::Pluggable::StackTraceAsHTML - Add debugger command to see stack trace as HTML

# SYNOPSIS

    $ cat ~/.perldb

    use DB::Pluggable;
    use YAML;

    $DB::PluginHandler = DB::Pluggable->new(config => Load <<EOYAML);
    global:
      log:
        level: error

    plugins:
      - module: StackTraceAsHTML
    EOYAML

    $DB::PluginHandler->run;

    $ perl -d foo.pl

    Loading DB routines from perl5db.pl version 1.28
    Editor support available.

    Enter h or `h h' for help, or `man perldebug' for more help.

    1..9
    ...
      DB<1> Th



# DESCRIPTION

This plugin for [DB::Pluggable](http://search.cpan.org/search?mode=module&query=DB::Pluggable) adds the `Th` command to the debugger, which
displays a stack trace in HTML format, with lexical variables, using
[Devel::StackTrace::AsHTML](http://search.cpan.org/search?mode=module&query=Devel::StackTrace::AsHTML). It then opens the page in the default browser
using [Browser::Open](http://search.cpan.org/search?mode=module&query=Browser::Open).

The command name `Th` was chosen because the `T` command shows a plain text
stack trace and `h` indicates that the output is HTML.

# METHODS

- `register`

Adds the `Th` command to the Perl debugger.

# BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests through the web interface at
<http://rt.cpan.org>.

# INSTALLATION

See perlmodinstall for information and options on installing Perl modules.

# AVAILABILITY

The latest version of this module is available from the Comprehensive Perl
Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site
near you. Or see
<http://search.cpan.org/dist/DB-Pluggable-StackTraceAsHTML/>.

The development version lives at
<http://github.com/hanekomu/db-pluggable-stacktraceashtml/>.  Instead of
sending patches, please fork this project using the standard git and github
infrastructure.

# AUTHORS

Marcel Gr&uuml;nauer, `<marcel@cpan.org>`

# COPYRIGHT AND LICENSE

Copyright 2009 by Marcel Gr&uuml;nauer

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