mpegjohn has asked for the wisdom of the Perl Monks concerning the following question:

We are using pherkin to run a number of steps for a feature. I am a bit at a loss how to set a breakpoint, when using perl debugger, in a given step, as the setps are written as: Given qr/(.+) is (.+) within (.+) seconds/, sub { my $field = $1; my $expected = $2; my $timeout = $3; } Say I wanted to set a breakpoint on the $timeout afetr starting the debugger with perl -d pherkin.

Replies are listed 'Best First'.
Re: Set a breakpoint in pherkin
by LanX (Saint) on Apr 27, 2015 at 12:16 UTC
    Please use code tags and provide a link to pherkin on CPAN.

    That'll facilitate getting good responses a lot.

    Without being able to understand your case here, you can always hard code a breakpoint with $DB::single=1

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

    update

    Did you use the normal b command to set a breakpoint, and how did it fail?

    Did you read the documentation of the debugger?

      Putting $DB::single=1 proves a winner thank you