Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Debugging forking perl script? GDB?

by xiaoyafeng (Deacon)
on Nov 19, 2019 at 02:59 UTC ( [id://11108890]=note: print w/replies, xml ) Need Help??


in reply to Debugging forking perl script? GDB?

I took a look App:Stacktrace, It's compiled gdb to perl interpreter. It should work for you unless the internal of perl has been changed much.

But your issue is different, theretcially, when fork create a new process, gdb will only monitor parent process, but your issue happen in child. So I suggest you writing a monitor script to solve this: when your program fork a new process, just sleep a second, find pid of new process, then use App::Stacktrace/gdb attach it.





I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11108890]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2024-04-18 09:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found