in reply to Re^3: RFC: Location via B::Deparse
in thread RFC: Location via B::Deparse

An update on where things stand now...

Github now has modified code to save deparsed text fragments and more of an abstract runtime tree structure. I've moved the "deparse" command in Devel::Trepan out, since this now uses this cooler code, B::Deparsetree, which is not part of the core Perl distribution, and only works right now for versions 5.20 and 5.22.

At some point I'll package these for CPAN and make a new release of Devel::Trepan. There still are lots of bugs and improvements that could be made in in B::DeparseTree: B::Deparse which it is based on has thousands of tests, and I tried merely a single thousand or so of these. And B::Deparse with these still has bugs based on trying run it against the core Perl tests.

This was an incredible time sink. But I think it really cool. Things like Carp::Confess and callstack routines could be beefed up to give more information about the source at a failure.