In my script, I previous connected and disconnected to the database within
every subroutine. Now I have made changes and it now connect/disconnect to
mysql only once within main:: (at the start and end of script
respectively). Although my script works fine, I am wondering whether this
is the best
Tom, WC:
Thanks!
This works (almost) perfectly.
I issued the
open $DB::OUT, "| tee dbug.txt"
as a Perl Debugger command. The output is a little funky when displaying
Perl debugger keyboard commands entered by the user, but the output
produced by the Perl debugger is captured fai
On 7/12/06, Gavin Bowlby <[EMAIL PROTECTED]> wrote:
I would like to see the results of the Perl debugging session in a file.
The debugger wasn't made with that in mind, but you could work around
it. At least, this works for me.
open $DB::OUT, "| tee dbug.txt" or die if $DB::OUT;
You may fin
On 7/12/06, Gavin Bowlby <[EMAIL PROTECTED]> wrote:
bash-2.05b$ cat test.pl
#!/usr/bin/perl
$x = 1;
print "x:$x\n";
bash-2.05b$ perl -d test.pl | tee xxx 2>&1 > yyy
Hmmm.
You know, when posted previously I guess I should have stated that I
had not yet gotten it to work myself but posted any
WC:
Thanks for your response!
I think what you suggested works fine for normal shell commands, but it
doesn't appear to work for the Perl debugger.
Here's a sample session, running on a Linux machine:
bash-2.05b$ cat test.pl
#!/usr/bin/perl
$x = 1;
print "x:$x\n";
On 7/7/06, Gavin Bowlby <[EMAIL PROTECTED]> wrote:
Is there a way to redirect the output of a debugger command to a file?
What I use is Linux specific, sort of varies by bash and distro for
example, but you are welcome to try it out (I asked in irc #bash
before posting here) -
ls -ial |tee cap
mmand 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" com
> Did you try:
>
> perl -d /path/to/my_perl_script --install --dbname="blah"
>
> That works for me on my scripts with Getopt::Long
>
>
>
Hi,
I did try:
perl -d ./my_script --install --dbname="bbb"
That did not seem to work for me. It could be that certain modules I am
writing are not loading
> -Original Message-
> From: radhika [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 22, 2005 12:37 PM
> To: beginners@perl.org
> Subject: Using the perl debugger with options
>
> Hi,
> I am a beginner perl programmer (but not exactly a novice)
> and
Hi,
I am a beginner perl programmer (but not exactly a novice) and am writing
a perl module which is itself inherited from another module. Also my perl
script uses getopts for various command line options. How can I use the
perl debugger with cmd line options?
every time I do:
./my_perl_script
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Jeff Westman) writes:
>Hi,
>
>I'm using perl version 5.6.1 for Unix (HPUX-11). I would like to be able to
>retain my 'watches' and breakpoints in between debug sessions. Is there a
>way to do this with the standard debug library that comes with
Hi,
I'm using perl version 5.6.1 for Unix (HPUX-11). I would like to be able to
retain my 'watches' and breakpoints in between debug sessions. Is there a
way to do this with the standard debug library that comes with perl?
(I know I can save these with the ptkdb package, but I cannot get that t
Hey Peter, thanks for the response,
I had crawled back into my hacking hole, and just came up for air...
I am not proficient at all with the perl debugger, that is why I was
looking for a gui version (not to mention the fact that Activestate's
PDK took the command line debug over)...
At 02:09 AM 6/25/02 -0500, Shawn wrote:
>Does anyone know of a IDE debugger that does not choke on complex data
>objects? I have tried all of the following, but they all have a
>serious problem with dereferencing an array of referenced hashes...
>
>VisiPerl
>Open Perl IDE
>OptiPerl
>ActiveState
Does anyone know of a IDE debugger that does not choke on complex data objects? I
have tried all of the following, but they all have a serious problem with
dereferencing an array of referenced hashes...
VisiPerl
Open Perl IDE
OptiPerl
ActiveState's PDK
I am getting the "Bizarre copy of ARRAY
From: "Gary Hawkins" <[EMAIL PROTECTED]>
> I mentioned the perl debugger before but I guess some people would not have had
> the GUI version available. It comes with the Perl Development Kit, so I should
> clarify.
>
> Don't know about *n*
I mentioned the perl debugger before but I guess some people would not have had
the GUI version available. It comes with the Perl Development Kit, so I should
clarify.
Don't know about *n*x but if you installed ActivePerl on Windows, then install
the Perl Development Kit and try:
>
I'm new to using the debugger and have printed and read the debugger
description and commands. It mentions that you can create a
command/parameter file that contains commands but doesn't say how or where
it must be located. I would like to have some way of doing an autotrace on a
PL program as it
Ruth Albocher [[EMAIL PROTECTED]] quoth:
*>hi all.
*>Is there any good stable graphic debugger for perl?
There are several, depending on your platform.
Go out and get "Perl Debugged" by Peter Scott as it covers the Perl
debugger and the tools very well. http://www.bookpool.co
-Original Message-
From: Ruth Albocher [mailto:[EMAIL PROTECTED]]
Sent: 02 August 2001 10:56
To: [EMAIL PROTECTED]
Subject: perl debugger
hi all.
Is there any good stable graphic debugger for perl?
thanks
Try the one in the ActiveState Perl Dev Kit.
You can
hi all.
Is there any good stable graphic debugger for perl?
thanks
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
21 matches
Mail list logo