Is there a way to redirect the output of a debugger command to a file?

I've tried the:

| <debug_cmd>

format, which nicely brings up the "Pager" to allow one page of output
at a time to be viewed, which works well with relatively small amounts
of data.

Unfortunately, my Perl app is large, has many variables, and I want to
view all of my variables to check for memory leaks after the app has run
for some time.

When I do this, using the "X" command, I get a few thousand pages worth
of screen displays.

I'm running under Cygwin, and the [EMAIL PROTECTED]&! bash command window only
allows a maximum depth of 10K lines, which is much less than what I need
to view all of my variables.

The other complication is I need a combination of application keyboard
commands and Perl debugger commands to get to the point when I want to
issue the Perl debugger "X" command, so I don't think I can easily set
up a pipe to send combinations of Perl debugger commands and application
commands to a "perl -d" session.

Or maybe I'm wrong, and there's an easy way to do this...

Any suggestions will be welcomed...


Thanks,
Gavin Bowlby


--
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