Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: debugging a running perl script

by matija (Priest)
on Jun 18, 2004 at 14:25 UTC ( #367955=note: print w/ replies, xml ) Need Help??


in reply to debugging a running perl script

As long as you start the debugger beforehand....

Run the program with the debugger enabled, pass c as the command to the debugger. The program now runs normaly.

When you reach the point in your program where you want the debugger activated, press ^C in your console window. Instead of aborting (like it would if the debugger were not activated), the program will drop you to the debugger prompt.

I don't think there's a way to do this for processes where the debugger was NOT activated first.


Comment on Re: debugging a running perl script

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2016-02-12 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (388 votes), past polls