[Koha-devel] A solution to add debugger functionality to most koha *.pl scripts, thoughts please?

Mason James mason.loves.sushi at gmail.com
Tue Feb 10 08:13:29 CET 2009


On 2009/02/10, at 7:30 PM, John Beppu wrote:

> Give C4::Debug an import() function like this:
>
> sub import {
>         if ($debug) {
>                 require Smart::Comments;
>                 Smart::Comments->import;
>                 require Data::Dumper;
>                 Data::Dumper->import;
>         }
>         C4::Debug->export_to_level(1, @_);
> }
>


hot damn - that works perfectly ;)

thanks John!




More information about the Koha-devel mailing list