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 ...
Get Practical UNIX now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.