Its simple. A module which turns every warning and death into a Carp::confess/cluck style stack trace. Everything, even if the warning or error is generated by Perl. I also want to see function arguments in the stack trace, extremely useful information, which is where all the other Java-esque stack trace modules on CPAN come up short.
I know how to implement it, just a little CORE::GLOBAL and $SIG{__FOO__} magic and let Carp::longmess() take care of the rest. What I don't have is a name. My working title at the moment is Carp::Everywhere. Got a better one?
(Someone please let me know if this module already exists, I don't need to maintain another.)
Acme strikes again! (Score:2)
Would you be thinking of Acme::JavaTrace [cpan.org] by any chance? I've never used it myself, but saw a good lightning talk about it at Belfast last year.
Re:Acme strikes again! (Score:2)
Devel::StackTrace? (Score:1)
Re:Devel::StackTrace? (Score:1)
Re:Devel::StackTrace? (Score:1)
That doesn't display the arguments passed to the functions in the caller stack.
Devel::TraceSubs comes closer, but it gets confused if you do odd things with @_. I have a couple of bugs (13287 and 13302) on the issue. I've been trying to find the time to patch it but so far unsuccessful.
funny name (Score:1)
What about Carp::Indeed ? (Score:1)
Carp::Indeed 0.03 (Score:1)
It is not as robust as it should yet, but better. Thanks, Schwern, for reassu
Re:Carp::Indeed 0.03 (Score:2)
Except the name stinks, why did you choose that name? And the documentation is rather ranty... but that's fixable.
Re: Carp::Indeed 0.03 (Score:1)
Re: Carp::Indeed 0.03 (Score:1)
Carp::StackTrace would be a good name then. One would already have a pretty good idea what the module does, without opening the documentation.
Re: Carp::Indeed 0.03 (Score:2)
Re: Carp::Indeed 0.03 (Score:1)
Oh right, I forgot that Carp could already do that. Still, I find "Everywhere" has a slightly cutesy ring to it.
Besides, the functionality you want is confess, not carp...
Some of my best friends are Catholics. I'll go ask them for some ideas :)
Re: Carp::Indeed 0.03 (Score:2)
At what point in this conversation did we stop talking about Perl and switch to Java?
I kinda like that one. We can add more layers of cultural references...
Inquisition::Spanish
Comfy::Chair
Soft::Pillow
You're no fun anymore (Score:1)
Monty::Python::Inquisition::Spanishis where Guido the Parselmouth [wikipedia.org] got his inspiration for thumbscrew indentation, so we loyal camelistas can't even quote the Camel Spotting sketch [ibras.dk] for fear of endorsing The Other Language [wikipedia.org].Oh dear, I've gone and quoted it ... I'll have to go outside and turn three times.
</JOKE>Bill
# I had a sig when sigs were cool
use Sig;
perllexwarn's Fatal Warnings? (Score:1)
use warnings FATAL => qw(all);
do something useful for you?
Re:perllexwarn's Fatal Warnings? (Score:2)
If you're on edev1 (Score:2)
what about (Score:2)
Carp::LikeCrazy? (Score:2)
Or else, I like hfb's idea.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Carp::Ability (Score:2)
just a few (Score:1)
Carp::Vomit
Carp::TheWhole9Yards
ok enough silliness, what about Carp::StackTrace?
how about... (Score:1)
Carpe'Diem
-DA [coder.com]
How about ... (Score:2)
Devel::Errors::WithStackTrace