Thanks Robert...it worked.... Cheers, Parag
On Tue, Nov 17, 2009 at 10:49 PM, Gorrebeeck, Robert <gorrebeec...@cvty.com>wrote: > When you set a script to debug you hit 'N' to go line by line > > There is way to go to a specific line. > > When you start the debugger instead of hitting 'N' - hit 'b' (for break) > then the line number where you want to go - in your case after the loop, > and then 'c' to continue. The debugger will go past your loop and to > whatever line you want to debug > > So for example - (this is a screen shot of a test script) > > -bash-3.2$ perl -d test_script.pl > > Loading DB routines from perl5db.pl version 1.28 > Editor support available. > > Enter h or `h h' for help, or `man perldebug' for more help. > > main::(test_script.pl:19): $ENV{'SYBASE'}="/opt/sybase12"; > > DB<1> b 92 > > DB<2> c > main::(test_script.pl:92): my $fmt = "ISO"; > > DB<2> > > That should help you get past your loop > > > Robert Gorrebeeck > Sr. EDI Developer > TCM Development Group > Coventry HealthCare > 3220 Keller Springs > Suite #106 > Carrollton, Texas 75006 > (o) (972) 725-1484 > (e) gorrebeec...@cvty.com > > -----Original Message----- > From: Parag Kalra [mailto:paragka...@gmail.com] > Sent: Tuesday, November 17, 2009 11:11 AM > To: Perl Beginners > Subject: How to complete the loop while debugging. > > Hi All, > > It happens so many times that while debugging I come inside a loop which > doesn't contain the issue which I am debugging. > > And as I am not aware of a method to complete the loop while debugging - > I > manually enter 'n' to complete each iteration and finish the loop > operation. > > And then again continue debugging outside the loop. This may be very > tedious > if loop involves an array or a file which is very large in size. > > So wanted to know if there is a way to complete all the iterations of a > loop > in one go without manually pressing 'n' for the next step. > > Cheers, > Parag > > > > > > Email Confidentiality Notice: The information contained in this > transmission is confidential, proprietary or privileged and may be subject > to protection under the law, including the Health Insurance Portability and > Accountability Act (HIPAA). > > The message is intended for the sole use of the individual or entity to > whom it is addressed. If you are not the intended recipient, you are > notified that any use, distribution or copying of the message is strictly > prohibited and may subject you to criminal or civil penalties. If you > received this transmission in error, please contact the sender immediately > by replying to this email and delete the material from any computer. > > >