RE: [DEBUGGER] break point in "required" code

[email protected] (Gabor Szabo) Tue, 16 Sep 2003 11:27:05 +0300 (IDT)
Newsgroups perl.debugger
Message-ID <[email protected]>
On Tue, 16 Sep 2003 [email protected] wrote:

>
> Use the 'onload breakpoint' facility:
>
> 	b load module
>
> Then restart the debugger:
>
> 	R
>

Well, I tried

perl -d myscript.pl
> b load DBD::Sprite
Will stop on load of `DBD::Sprite DBD::Sprite.pm'.
> b load DBD/Sprite
Will stop on load of `DBD/Sprite DBD/Sprite.pm DBD::Sprite DBD::Sprite.pm'.
> R

[...]

> c


but it did not work. (BTW using 5.8.0)

Once I ran the script to the end by typing "c" I could ask for
> b load DBD/Sprite
Will stop on load of `/home/gabor/projects/perl/yapcom/yapcom/yapcom/t/../lib3/DBD/Sprite.pm
DBD/Sprite DBD/Sprite.pm DBD::Sprite DBD::Sprite.pm'.

then restarting

> R

and running till stop

> c

worked.


I guess if I gave the exact location of the equired module as a
paramter for b load then it would not need two iterations to setup
the break point on load.
Or did I miss something ?

Gabor