Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: Debugging DESTROY calls in forking application

by LanX (Saint)
on Mar 10, 2020 at 14:20 UTC ( [id://11114073]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Debugging DESTROY calls in forking application
in thread Debugging DESTROY calls in forking application

Well that's solution for your underlying problem, but not the OP. ;)

The interested reader might want to know that Perl has also tracers in the Devel namespace.

perlrun

  • dt:MOD=[bar,baz]
    runs the program under the control of a debugging, profiling, or tracing module installed as Devel::MOD. E.g., -d:DProf executes the program using the Devel::DProf profiler. As with the -M flag, options may be passed to the Devel::MOD package where they will be received and interpreted by the Devel::MOD::import routine. Again, like -M, use --d:-MOD to call Devel::MOD::unimport instead of import. The comma- separated list of options must follow a = character. If t is specified, it indicates to the debugger that threads will be used in the code being debugged. See perldebug

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

Replies are listed 'Best First'.
Re^4: Debugging DESTROY calls in forking application
by cavac (Parson) on Mar 10, 2020 at 14:42 UTC

    I tried it with -d:Trace, but all the extra stuff happening made timeouts happen which screwed up my tests.

    But i agree, in many cases all that build in debugging/profiling/tracing functionality is a good way to find problems.

    perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114073]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-25 15:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found