Prev: FAQ 8.9 How do I ask the user for a password?
Next: FAQ 5.27 How do I set a file's timestamp in perl?
From: miten on 8 Jul 2010 08:43 Hi, is there way we can debug code including those perl files which might be exec with system command. i have code which is like: main.pl --------- #....some code system("other.pl"); I want to set break points in other.pl. In fact other.pl loads other module like someother:submodule:subr and would like to set break point in subr which is called from exec other.pl. Regards, Miten.
From: Peter Scott on 8 Jul 2010 10:22
On Thu, 08 Jul 2010 05:43:32 -0700, miten wrote: > Hi, > > is there way we can debug code including those perl files which might be > exec with system command. > > i have code which is like: > > main.pl > --------- > #....some code > system("other.pl"); > > I want to set break points in other.pl. In fact other.pl loads other > module like someother:submodule:subr and would like to set break point > in subr which is called from exec other.pl. system("$^X -d other.pl"); -- Peter Scott http://www.perlmedic.com/ http://www.perldebugged.com/ http://www.informit.com/store/product.aspx?isbn=0137001274 http://www.oreillyschool.com/courses/perl1/ |