230

Debugging Perl
Debugger Example

  • Perl's debugger instructions enable the control of flow, setting and stopping at breakpoints, tracing, and so on


    Exercise
    1. Run the debugger on the wrap example script
    2. Experiment with some of the debugger commands
      1. Type "w"
      2. Type "s"
      3. Type "c 24"
      4. Type "p $pre1"
      5. Type "w"
      6. Type "s"
      7. Type "w" (notice we are inside a perl library now!)
      8. Type "c"
      9. Type "q"
    No
    Hint
    To
    Start

    wrap