develooper Front page | perl.perl5.porters | Postings from September 2013

Re: A few Perl gdb debugging tools

Thread Previous | Thread Next
From:
wolfsage
Date:
September 30, 2013 17:05
Subject:
Re: A few Perl gdb debugging tools
Message ID:
CAJ0K8bg=CR=8no=XQQc4ncSqeAE3z6bvn+BAvdj7nTtUsN1=JA@mail.gmail.com
On Mon, Sep 30, 2013 at 10:22 AM, Zefram <zefram@fysh.org> wrote:
> Matthew Horsfall (alh) wrote:
>>I'd be fine with removing the reference to my module if there's
>>another way to catch the Parser inside an if() statement, etc, but I
>>couldn't figure out how to get BEGIN { } to work inside:
>
> You don't want BEGIN in that case.  BEGIN{study} is intended to cause
> a break very early in perl execution, providing a good opportunity to
> set up additional breakpoints and watchpoints.  If you want a break at
> a particular point in execution, you just want study() at that point.
>

I do. The point is to catch the parsing of the if(...) statement, not
the execution. (which is why I wrote Devel::GDB::Parser::Breakpoint).

-- Matthew Horsfall (alh)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About