gri6507 has asked for the wisdom of the Perl Monks concerning the following question:
Allow me to demonstrate what I'd like to do in terms of compiled C programs. First off, my environment is a Sun Solaris 8 box with Sun Workshop installed. Thus, my compiler is cc (used with the -g option). When compiled like this, I can use the workshop debugger to step through programs, evaluate variables, etc. Moreover, I can use workshop to attach to a running process (say, one that's in an infinite loop, or one that's hung) and see where in the code this running process is currently at and proceed with the standard debugging steps.
I'd like to be able to do the same with perl. In particular, I have a Tk GUI with a forked process (in effect a while(1) loop with brains). I'd like to attach a debugger to this forked process to see where it is during a particular time of execution, to see values of variables, etc. Is there any such tool? Free tools are, of course, prefered.
Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: debugging a running perl script
by Fletch (Bishop) on Jun 18, 2004 at 14:08 UTC | |
|
Re: debugging a running perl script
by eXile (Priest) on Jun 18, 2004 at 15:07 UTC | |
|
Re: debugging a running perl script
by matija (Priest) on Jun 18, 2004 at 14:25 UTC | |
|
Re: debugging a running perl script
by coreolyn (Parson) on Jun 18, 2004 at 16:10 UTC | |
by KeighleHawk (Scribe) on Jun 18, 2004 at 23:22 UTC | |
|
Re: debugging a running perl script
by Roger (Parson) on Jun 19, 2004 at 02:26 UTC |