且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Perl:强制堆栈跟踪“不能调用未定义的方法”

更新时间:2023-11-02 13:05:34

我不知道它是否在Catalyst内工作,但是通常您可以通过包括CPAN模块来强制堆栈跟踪。 Carp :: Always ,例如通过在程序中的某个地方写入使用Carp :: Always; 或者使用启动perl脚本-MCarp :: Always 开关。

I am not sure if it works within Catalyst, but usually you can force a stacktrace by including the CPAN module Carp::Always, e.g. by writing somewhere in your program use Carp::Always; or starting the perl script with the -MCarp::Always switch.