in reply to Trace compiled perl script

What is a "compiled perl script?" If you're talking about PAR, PerlApp, Perl2Exe, they aren't compiled, and Devel::Trace could work

Replies are listed 'Best First'.
Re^2: Trace compiled perl script
by iea (Beadle) on Mar 14, 2010 at 10:52 UTC
    OK Sorry. I am using Perapp. How can i make Devel::Trace work with perlapp. Thanks for your reply
      I've never used the PDK nor PerlApp, but I checked the perlapp synopsis. I would add Devel::Trace to your script as you normally would. Then, from the command line, you'll need to use the --add option to get perlapp to pickup on Devel::Trace. I'd do this:
      perlapp myscript.pl --add Devel::Trace
      .
        Ok i made it. Thanks for your help

        Here is the solution.

        perlapp --debug -

        Add - to use the perl debuger.

        Enable and disable trace in the perl script

        use Devel::Trace; $Devel::Trace::TRACE = 1; # Enable $Devel::Trace::TRACE = 0; # Disable