Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Connect gdb to a running perl process

by saintmike (Vicar)
on Feb 14, 2005 at 19:32 UTC ( [id://430902]=note: print w/replies, xml ) Need Help??


in reply to Re: Connect gdb to a running perl process
in thread Connect gdb to a running perl process

This might be a stupid question, but why are you using gdb to debug your Perl script? Why not invoke the Perl debugger?

You can't call the perl debugger on a running perl script, can you? Requirement is to not having to restart the process.

(By the way, from the where output, I would hazard a guess that your Perl code is executing a sleep statement)

Right, this was a sample script. I was hoping there was a proven sequence of gdb commands to examine perl's internal data structures revealing the current file and line.

  • Comment on Re^2: Connect gdb to a running perl process

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://430902]
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 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found