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


in reply to Debugging forking perl script? GDB?

I haven't used it, but App::Stacktrace claims to do just that.

Looking at the source, it basically seems to automate gdb to step through things, and it seems to only know about Perl up to 5.14, so some manuall massaging of the code might be needed.

There is Debugging Perl scripts which use fork(), and there, Debug::Fork::Tmux is mentioned, which doesn't use Xterms on the client but Tmux sessions on the server.

  • Comment on Re: Debugging forking perl script? GDB?

Replies are listed 'Best First'.
Re^2: Debugging forking perl script? GDB?
by cavac (Parson) on Nov 18, 2019 at 13:43 UTC

    Yeah, i couldn't get App::Stacktrace to work. And i know exactly nothing about the internals of the perl interpreter, so i wouldn't even know how to fix the module.

    perl -e 'use MIME::Base64; print decode_base64("4pmsIE5ldmVyIGdvbm5hIGdpdmUgeW91IHVwCiAgTmV2ZXIgZ29ubmEgbGV0IHlvdSBkb3duLi4uIOKZqwo=");'