YAPC::NA 2004 The Perl Debugger #17

Breakpoints

b <line-number or subroutine> <optional condition> - Set a breakpoint

  • causes the debugger to return to the user from continuous execution (such as from r and c)

  • when a particular condition is met at a line or subroutine

        DB<1> b 500
        DB<2> b buggySub ($index > 23)
  • useful for jumping ahead to a particular iteration of a loop or complex conditional

To list all breakpoints and actions:

  • L <line-number>

To delete a breakpoint:

  • Perl <5.8:.... d <line-number>

  • Perl 5.8:..... B <line-number>

<< Previous | Index | Next >> Copyright © 2004 Daniel Allen