http://www.perlmonks.org?node_id=596736


in reply to Using the Perl Debugger (-d)

I sometimes use something like:
PERLDB_OPTS="NonStop=1 LineInfo=db.out AutoTrace" perl -d <script>
which writes the flow of execution to a file (db.out in this case).