O'Reilly logo

Practical UNIX by Steve Moritsugu - DTR Business Systems

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Debugging Your Script

The Perl debugger is not a separate program. Instead, you invoke Perl with the -d option, and you are in Debug mode. While in Debug mode, you have the capability to examine source code, set breakpoints, dump out your function call stack, change the values of variables, and so forth. This section does not go through all the functionality of the debugger, nor does it give you all the available commands. However, this section does introduce you to the basic debugging commands and shows you how to find out more. Specifically, the things that you are shown here are how to set, list, and remove breakpoints; how to step through a program; how to check and change the value of a variable; and how to get help.

I will be using the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required