Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Re: Monitor file require/use

by bikeNomad (Priest)
on Jul 27, 2001 at 17:52 UTC ( #100302=note: print w/replies, xml ) Need Help??

in reply to Re: Monitor file require/use
in thread Monitor file require/use

What do you mean "print out loaded files *and* variables and values being exchanged between them"? What variables? How do your required or used files exchange values with variables?

This script uses the debugger interface. If you want to monitor a variable, you can tie it (see perltie and Tie::Scalar or Tie::Array or Tie::Hash). I'm not sure what problem you're trying to solve.

If you just want to watch a particular CGI, just use a remote debugger like Devel::ptkdb or ActiveState's debugger.

Replies are listed 'Best First'.
Re: Re: Re: Monitor file require/use
by khippy (Scribe) on Jul 30, 2001 at 14:02 UTC
    What I am dreaming of ;-) is an omnipotent debuggertool.
    As I only know perl -d so far, I can't imagine a convenient
    way of debugging a cgi-script with multifunctions in depth.
    So I would appreciate a tool telling me that the is currently calling passing
    variable with value to it
    The problem is, that the is invoked by Apache by browserrequest, so how can you get into that???
    there are no silly questions
      If you want to debug a CGI, look at Devel::ptkdb, which will open a Tk debugger for you. You can set breakpoints on specific lines as needed, possibly with conditions.

      Beyond that, note that "scripts" don't call modules. They require or use modules (which is what my debugger script catches); they call subroutines/methods that were defined by the modules.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2021-05-17 22:40 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (169 votes). Check out past polls.