Check out 'ddd'.

I've heard it allows you to attach a remote console debugger to
a parl script.  Hence you could web browse to http://whatever and
trap the CGI invocation when it starts up and attaches to the debugger.

Not sure about the details though.
 

> -----Original Message-----
> From: Mike Ni [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, 16 March 2004 5:57 PM
> To: David le Blanc
> Subject: RE: Perl -d 
> 
> 
> Hey David,
> 
> Thanks for the information.
> 
> BTW, I want to follow up another question, if I may.
> I am still struggling with the "perl -d".
> 
> Here is the problem I want to solve:
> 
> I have a perl file: index.html
> 
> everytime the user loin to the web server, they 
> will be served by "index.html". 
> 
> Depnding on what they want, the apache server will
> execute the appropriate perl script file. 
> 
> What I need to do is to trace the "session & state".
> Therefore, "perl -d" will not do me anygood. 
> Neither is the "-d:: Trace".
> 
> This is because I have no control on the flow
> of the execution. 
> 
> Is there anyway I can set break point and debug
> the data structure on a "http://localhost?>
> 
> 
> Apreciate.
> MIke
> 
> --- David le Blanc
> <[EMAIL PROTECTED]> wrote:
> > > -----Original Message-----
> > > From: Mike Ni [mailto:[EMAIL PROTECTED] 
> > > Sent: Tuesday, 16 March 2004 3:46 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Perl -d 
> > > 
> > > Hey everyone, 
> > > 
> > > 
> > > While I was playing with perl's built-in debuger 
> > > (perl -d),  I notice that  debugger doesn't seem
> > > care too much about whether a variable is
> > declared?
> > > 
> > > For example, I would get response of "empty hash"
> > if 
> > > I do a "x \%dummy" regardless dummy hasn't been
> > > delcared yet. 
> > > 
> > > The same response "empty hash" if I dump a declred
> > > hash before it is initialize. 
> > > 
> > > It is as if there isn't too much difference
> > between an
> > > undeclared variable & unitialized variable? 
> > > 
> > > Is this the way it is ? Or I am not doing right? 
> > > 
> > > Thanks
> > > Mike
> > 
> > Once the compilation phase has completed, and you
> > are in the debugger,
> > it is almost as if 'use warnings' and 'use strict'
> > no longer apply to
> > variable references.
> > 
> > Hence you are free to create or access previously
> > undefined, undeclared
> > and unreferenced variables.
> > 
> > Cheers.
> > David
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > <http://learn.perl.org/>
> > <http://learn.perl.org/first-response>
> > 
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam
> http://mail.yahoo.com
> 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to