KW.pm The Perl Debugger #15

Actions

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

  • sets code to run before the given line is executed.

        DB<1> a 10 $x = 23;
  • useful to:

    • force variables to experimental values

    • add diagnostic code

  • ... without disturbing the source code

  • to delete an action, just specify one parameter, the line-number

(see example)

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