http://qs321.pair.com?node_id=798375


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?

Replies are listed 'Best First'.
Re^2: A phantom death
by jdporter (Paladin) 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.