Devel::Command::Viz - graph data structures under the debugger
# in .perldb: use Devel::Command; sub afterinit { Devel::Command->install; } # In the debugger: DB<1> my $a = [1, 2, {3=>4}, [5.6]] DB<2> viz $a # A 'dotty' window pops up, showing the data structure.
Devel::Command::Viz is a debugger extension command plugin for Devel::Command. It uses GraphViz::Data::Structure to visualize a Perl data structure and dotty to display the resultant graph.
Devel::Command::Viz
GraphViz::Data::Structure
dotty
Standard Devel::Command wrapper code to parse a debugger command line, render the graph, and display it.
Devel::Command
None known; it's possible that the resultant graphs may have probelms due to as-yet-uncaught bugs in GraphViz::Data::Structure.
The command will not work if you have no way of running dotty, which requires X Windows to be running.
perl5db.pl, Devel::Command, dotty
perl5db.pl
Joe McMahon, <mcmahon@cpan.org>
Copyright (C) 2005 by Joe McMahon
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Devel::Command::Viz, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::Command::Viz
CPAN shell
perl -MCPAN -e shell install Devel::Command::Viz
For more information on module installation, please visit the detailed CPAN module installation guide.