Re: Debugger question

2008-02-15 Thread Stephen Kratzer
On Friday 15 February 2008 11:18:26 ANJAN PURKAYASTHA wrote: > I have a simple script that I'm using to learn debugging: > #! /usr/bin/perl -w > > use strict; > use warnings; > > my $i= 0; > while ($i<= 15){ > print ("$i\n"); > $i++; > } > > Question: i would like to attach a breakpoint

Re: Debugger question

2008-02-15 Thread Menghan Zheng
Menghan Zheng 写道: type "watch $i==10" w $i==10 这两天用gdb很多,我把gdb的语法和perl的语法搞混了, sorry when $i is 10, the script pauses. ANJAN PURKAYASTHA 写道: I have a simple script that I'm using to learn debugging: #! /usr/bin/perl -w use strict; use warnings; my $i= 0; while ($i<= 15){ print ("$i\n");

Re: Debugger question

2008-02-15 Thread Menghan Zheng
type "watch $i==10" when $i is 10, the script pauses. ANJAN PURKAYASTHA 写道: I have a simple script that I'm using to learn debugging: #! /usr/bin/perl -w use strict; use warnings; my $i= 0; while ($i<= 15){ print ("$i\n"); $i++; } Question: i would like to attach a breakpoint in th

Debugger question

2008-02-15 Thread ANJAN PURKAYASTHA
I have a simple script that I'm using to learn debugging: #! /usr/bin/perl -w use strict; use warnings; my $i= 0; while ($i<= 15){ print ("$i\n"); $i++; } Question: i would like to attach a breakpoint in the program at the step at which $i takes on the value of 10. What command is us

Re: Debugger question

2004-12-20 Thread Red King
Thanks Peter! That solved my problem. Regards, Amit On 20 Dec 2004 16:36:27 -, Peter Scott <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Red King) writes: > >There is a script that "uses" a couple of modules and one of those > >modules is setting an enviro

Re: Debugger question

2004-12-20 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Red King) writes: >There is a script that "uses" a couple of modules and one of those >modules is setting an environmental variable. I need to determine >which of the used modules is doing that. Could someone let me know how >I should use the debu

Debugger question

2004-12-20 Thread Red King
Hi, There is a script that "uses" a couple of modules and one of those modules is setting an environmental variable. I need to determine which of the used modules is doing that. Could someone let me know how I should use the debugger to find this? That is, script.pl does something like: use Modu