Sam Tregar [06/07/01 10:41 -0400]:
> On Thu, 5 Jul 2001, Neil Watkiss wrote:
>
> > $ gdb perl
> > > break some_func
> > > run [args] script.pl [args]
>
> Wait, that doesn't work. "some_func" is part of a shared library that
> hasn't been loaded yet. I usually end up having to let script.pl run
> until it uses my module and the Ctrl-c'ing into the debugger where I can
> then set the breakpoint I want.
Well, it was a short answer :)
Okay, I usually do a perl -d script.pl in one window, then attach to the
process using gdb in another window. That way all the things have time to
load.
Later,
Neil