mauke / Function-Parameters

Function::Parameters - define functions and methods with parameter lists ("subroutine signatures")
https://metacpan.org/pod/Function::Parameters
18 stars 19 forks source link

Relegated error reporting to Carp::confess #27

Closed sergeykolychev closed 7 years ago

mauke commented 7 years ago

The reason why (most of) the errors in F:P don't include a stack trace is that they try to mimic perl's built in errors, which also only give a single source location.

However, you can force a stack trace by installing Devel::Confess and running your code with perl -d:Confess. Would that work for you?

sergeykolychev commented 7 years ago

@mauke No worries, I see your point. I just did this for my project, works for me :-) https://github.com/sergeykolychev/mxnet/blob/master/perl-package/AI-MXNet/lib/AI/MXNet/Function/Parameters.pm#L27 Thank you for keeping _croak in the Perl space!