Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: A phantom death

by jakobi (Pilgrim)
on Sep 30, 2009 at 16:05 UTC ( #798375=note: print w/ replies, xml ) Need Help??


in reply to A phantom death

Not yet mentioned: If everything fails, there's always the lowlevel approach of using the perl -d, type s<CR>, then keep <CR> pressed: this should give you the the last few lines of code before it dies, and thus an idea what actually happens. Maybe with a suitable breakpoint to speedup reaching the problematic line. man perlrun, man perldebug. Printing the arguments of the dying function call might also help -> perldoc -m Data::Dumper once again.

Meta: shouldn't there be an existing help/faq node on basic debugging; or do we assume this to be well-known?


Comment on Re: A phantom death
Re^2: A phantom death
by jdporter (Canon) on Sep 30, 2009 at 19:54 UTC
    Meta: shouldn't there be an existing help/faq node on basic debugging; or do we assume this to be well-known?

    Well, Tutorials has a section Debugging and Optimization, but it doesn't have many articles. More would be appreciated!

    I've updated the Tutorials Quest with this request.

    Between the mind which plans and the hands which build, there must be a mediator... and this mediator must be the heart.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (12)
As of 2014-12-22 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (114 votes), past polls