Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Debugging exec function in PERL
May 7, 2009, 10:58 am
rate this thread
Am debugging one perl module named A.pm in my project.
In that one shell script is calling using the exec function.
In the shell script one more perl module named B.pm is getting called.
And I set the breakpoints on the load of the B.pm by using the below
command in perl debugger
DB<15> b load B.pm
Will stop on load of `B.pm`
And I set the breakpoints on one function in the B.pm file using the
DB<16> b postpone Main
DB<17> b compile Main
Unfortunately the perl debugger without stopping at these locations
completing the execution.
Is I have to do any setting to stop at B.pm ?
Am not getting any idea how to go further?
Re: Debugging exec function in PERL
Make sure that the child Perl script is started in debugging mode (one
possibility may be PERL5OPT=-d). This would start a completely new
debugging session for each child Perl script; it would know nothing
about what you did in the parent debugger session.
Hope this helps,