V
Volker Nicolai
Hi,
I have a huge bunch of Perl scripts which invoke each other mainly
by the system command (just have to use them, did not write the
stuff myself).
First question: Isn't there a better way to make a hierarchy of
Perl scripts than to use system("sub_script") again and again?
Second question: I tried to debug the beast
but the problem
is that the debug switch -d which I have set e.g. in the
first/upmost script gets "lost" as soon as the system command
executes a subscript. That in general seems sort of reasonable
to me but then how can I overcome the problem that the debugger
does not stop in this invoked sub script (I mean except setting
the -d flag in each of the 100 sub scripts which is a problem
if I do not want to use the debugger any more - tried it with
the 1st sub hierarchy, seems to work).
Third question: Logically in the top script I can not see the
subroutines of the sub scripts before I dive into them.
What can I do to tell the debugger to stop @ a certain
subroutine deep down in the hierarchy. I tried to use
$DB::single = 1 / 2 respectively and
$DB::signal = 1
but the bloody thing does not care :-\.
This is probably related to questions 2:
No debugger activation no stopping, correct?
Final question: Is there any debugger documentation
where problems like these are covered?
Thanks for any contribution.
Volker
Volker Nicolai
Philips Semiconductors
Hamburg, Germany
I have a huge bunch of Perl scripts which invoke each other mainly
by the system command (just have to use them, did not write the
stuff myself).
First question: Isn't there a better way to make a hierarchy of
Perl scripts than to use system("sub_script") again and again?
Second question: I tried to debug the beast
is that the debug switch -d which I have set e.g. in the
first/upmost script gets "lost" as soon as the system command
executes a subscript. That in general seems sort of reasonable
to me but then how can I overcome the problem that the debugger
does not stop in this invoked sub script (I mean except setting
the -d flag in each of the 100 sub scripts which is a problem
if I do not want to use the debugger any more - tried it with
the 1st sub hierarchy, seems to work).
Third question: Logically in the top script I can not see the
subroutines of the sub scripts before I dive into them.
What can I do to tell the debugger to stop @ a certain
subroutine deep down in the hierarchy. I tried to use
$DB::single = 1 / 2 respectively and
$DB::signal = 1
but the bloody thing does not care :-\.
This is probably related to questions 2:
No debugger activation no stopping, correct?
Final question: Is there any debugger documentation
where problems like these are covered?
Thanks for any contribution.
Volker
Volker Nicolai
Philips Semiconductors
Hamburg, Germany