YAPC::NA 2004 The Perl Debugger #16

Actions

a <line-number> <code> - Set an action

  • wedge code into your program without modifying source

        DB<1> a 10 $index = $_;
  • useful to:

    • force variables to experimental values

    • add diagnostic code

  • ... without disturbing the source code

To delete an action:

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

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

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