Diar,

There is also a -d option that runs the perl debugger.  This is an option
that allows you to step through the running program one line of code at a
time and to things like print to the screen exactly what a variable contains
a particular point.  It is very robust but takes a bit to get familiar with
because it has so many commands.

Matt Schneider 
Programmer/System Administrator 
SKLD Information Services, LLC 



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: [Perl-unix-users] debugging option


Is there a more detailed debugging option to use on perl besides -w? I am
currently using #!/bin/perl -w but it does not catch the error I am running
into. Something equivalent to the -x option shell scripts use, would be
really useful. The script is used for printing to an IBM printer. It
determines the report type, size and then it prints to the printer. The
script itself does not seem to contain any errors, because it works fine if
I run it as user root, but the problem is when I run it as user lp, and is
something I have no control of, since the third party software my company
uses (vista plus,) requires lp to run it. When the script is run by user
lp, it finishes right away, giving no error messages, but report is not
printed, and if I do echo $?, it shows exit status 30. As a matter of fact
the script seems to work fine only by user root, no other ID's, which leads
me to believe it is a permissions issue, but where? I have nothing to work
with. If I can look at what the script is doing step by step and determine
at what point if any it gets stuck, then I may get somewhere.


_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to