Skip to content
This repository

Perl port of trepanning debugger

Octocat-spinner-32 bin
Octocat-spinner-32 example @_ set correctly when in a call stop. Check only for call stop when d… November 23, 2013
Octocat-spinner-32 lib Eval.pm: eval() remove bogus correction parameter. Start using utf8. April 16, 2014
Octocat-spinner-32 t Frame.pm: frame_setup Go over code to compute stack size. Handles get… April 15, 2014
Octocat-spinner-32 .gitignore @_ set correctly when in a call stop. Check only for call stop when d… November 23, 2013
Octocat-spinner-32 .travis.yml Try adding Perl 5.8 to Travis testing March 09, 2014
Octocat-spinner-32 Artistic Add a README and license info. October 10, 2011
Octocat-spinner-32 Build.PL Give op locations for call stack using Devel::Callsite 0.08's call-le… March 14, 2014
Octocat-spinner-32 ChangeLog Give op locations for call stack using Devel::Callsite 0.08's call-le… March 14, 2014
Octocat-spinner-32 Changes Get ready for release 0.52 March 12, 2014
Octocat-spinner-32 GNUmakefile Accomodations for Test::Aggregate which isn't a win right now. exampl… March 02, 2014
Octocat-spinner-32 LICENSE Get ready for release 0.50 June 22, 2013
Octocat-spinner-32 MANIFEST Load_Subcmd/Subcmd.pm: Allow reloading subcommands like we do for com… April 16, 2014
Octocat-spinner-32 MANIFEST.SKIP Accomodations for Test::Aggregate which isn't a win right now. exampl… March 02, 2014
Octocat-spinner-32 META.json Give op locations for call stack using Devel::Callsite 0.08's call-le… March 14, 2014
Octocat-spinner-32 META.yml Give op locations for call stack using Devel::Callsite 0.08's call-le… March 14, 2014
Octocat-spinner-32 README A couple of spelling typos December 12, 2012
Octocat-spinner-32 README.md Again too loud - Try again a masterbranch endorse June 19, 2013
Octocat-spinner-32 gpl-2.0.txt More packaging administrivia December 12, 2012
Octocat-spinner-32 ignore.txt Add a README and license info. October 10, 2011
README.md

Build Status

Devel::Trepan -- A new Perl debugger

A modular, testable debugger in the family of the Ruby "Trepanning" debuggers. The command set is modeled off of gdb, but other command sets are possible.

Features:

  • has extensive online-help,
  • syntax highlighting of Perl code
  • context-sensitive command completion
  • out-of-process and remote debugging
  • interactive shell support
  • code disassembly
  • gdb syntax
  • easy extensibility at several levels
  • is more modular
  • comes with extensive tests
  • is not as ugly as perl5db

SYNOPSIS

From a shell:

$ trepan.pl [trepan-opts] [[--] perl-program [perl-program-opts]]

Or for those who prefer the traditional Perlish way:

$ perl -d:Trepan perl-program [perl-program-opts]

Calling the debugger from inside your Perl program using Joshua ben Jore's Enbugger:

# This needs to be done once and could even be in some sort of
# conditional code
require Enbugger; Enbugger->load_debugger( 'trepan' );

# Alternatively, to unconditionally load Enbugger and trepan:
use Enbugger 'trepan';

# work, work, work...
# Oops! there was an error! Enable the debugger now!
Enbugger->stop;  # or Enbugger->stop if ...

Or if you just want POSIX-shell-like set -x line tracing:

$ trepan.pl -x -- perl-program [perl-program-opts]

Inside the debugger tracing is turned on using the command set trace print. There is extensive help from the help command.

INSTALLATION

To install this Devel::Trepan from source code:

perl Build.PL
make
make test
[sudo] make install

or to install from CPAN:

$ cpanm Devel::Trepan

LICENSE AND COPYRIGHT

Copyright (C) 2011-2013 Rocky Bernstein rocky@cpan.org

endorse

This program is distributed WITHOUT ANY WARRANTY, including but not limited to the implied warranties of merchantability or fitness for a particular purpose.

The program is free software. You may distribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation (either version 2 or any later version) and the Perl Artistic License as published by O’Reilly Media, Inc. Please open the files named gpl-2.0.txt and Artistic for a copy of these licenses.

Something went wrong with that request. Please try again.