How can I attach a debugger to a running Perl process?

前端 未结 3 988
萌比男神i
萌比男神i 2021-02-06 22:53

I have a running Perl process that’s stuck, I’d like to poke inside with a debugger to see what’s wrong. I can’t restart the process. Can I attach the debugger to the running pr

3条回答
  •  轮回少年
    2021-02-06 23:39

    I've never used gdb, but maybe you could get something useful out of strace?

    strace -f -s512 -p 
    

提交回复
热议问题