in reply to How to attach a perl debugger to a running perl

Hi Eyck, If you read the perl 5.9.4 todo list, and specifically this section, you'll see this is something that's been proposed:
Attach/detach debugger from running program The old perltodo notes "With gdb, you can attach the debugger to a run +ning program if you pass the process ID. It would be good to do this with t +he Perl debugger on a running Perl program, although I'm not sure how it +would be done." ssh and screen do this with named pipes in /tmp. Maybe we ca +n too.

It's clearly a technique that many would love to have.  As far as I know, though, it hasn't been implemented yet.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Replies are listed 'Best First'.
Re^2: How to attach a perl debugger to a running perl
by Eyck (Priest) on Sep 22, 2006 at 06:26 UTC
    Thanks for the info, I thought I'm just missing something, as such functionality is/would be immensly usefull.
      FWIW: I'm trying...

      As noted in Devel::STrace: strace for Perl scripts (with some seedlings), Devel::STrace et al. provide the seeds to support an attachable debugger. I'm hoping to get one together within a month or so.

      It will also be browser based, and multithread/multiprocess friendly...and (hopefully) collaborative.

      Alas, that doesn't solve your problem today <sigh/>

      If you're willing to roll up your sleeves, you might be able to either hack up Devel::STrace/Devel::RingBuffer to achieve what you need, or maybe wire something together with Devel::ebug.