On Fri, May 28, 2010 at 05:27:10PM +0000, Ævar Arnfjörð Bjarmason wrote: > I recently tried out Method::Signatures::Simple with NYTProf and found > that using M::S::S breaks the subroutine links in NYTProf: > > > http://blogs.perl.org/users/aevar_arnfjor_bjarmason/2010/05/trying-out-methodsignaturessimple.html > > I'm not familiar with the internals of either. Is this something that > could be supported? Here's a temporary URL showing the output of
The current behaviour is much improved, in that you now get a link and the link is to the right file. Sadly the link doesn't take you a specific line. The problem is that Devel::Declare installs the sub using Sub::Name's subname and that doesn't update the special %DB::sub hash. See https://rt.cpan.org/Ticket/Display.html?id=50524 and http://perldoc.perl.org/perldebguts.html#Debugger-Internals Matthijs, what's your view of the patch? Also http://search.cpan.org/dist/Package-Stash/ should provide a way to update the %DB::sub hash. Perhaps as an extra method just for subs, that wraps add_package_symbol and takes extra $filename, $firstlinenum, $lastlinenum arguments. Jesse, I'll provide a patch if you're interested. Tim. -- You've received this message because you are subscribed to the Devel::NYTProf Development User group. Group hosted at: http://groups.google.com/group/develnytprof-dev Project hosted at: http://perl-devel-nytprof.googlecode.com CPAN distribution: http://search.cpan.org/dist/Devel-NYTProf To post, email: [email protected] To unsubscribe, email: [email protected]
