in reply to Module::Build's Build test does not stop at breakpoints

tl;dr ...but...

BEGIN blocks are executed at compile time, i.e. already done before you can set your breakpoint with b .

AFAIR an explicit $DB::single=1 can help.

Should have been mentioned in the docs, see perldebug and perldebtut

edit

yep, see Debugging Compile Time Statements

HTH! =)

Cheers Rolf

( addicted to the Perl Programming Language)

Replies are listed 'Best First'.
Re^2: Module::Build's Build test does not stop at breakpoints
by tj_thompson (Monk) on Jan 27, 2014 at 21:10 UTC

    This should not be compile time though, correct? The only BEGIN block is around the use_ok test for the package. The test I'm trying to debug here is the second test, which is not part of a BEGIN block. I already include an explicit $DB::single here also, which seems to have no impact.

      ok sorry forget what I said, no real idea what blib is good for, looks like dark magic.

      Cheers Rolf

      ( addicted to the Perl Programming Language)