August 2003
Intermediate to advanced
1104 pages
19h 27m
English
The debugging functions help you figure out just what is going on with the inevitable broken script. Some of these functions make diagnostic information available to you inside your script. Others communicate with either a system log or a remote debugger. Practical approaches to debugging are addressed in Chapter 28.
The assert function (Listing 9.59) tests an expression. If the assertion is TRUE, no action is taken and the script continues. If the assertion is FALSE, behavior is dictated by the assertion options. By default, assertions are not active, which means they are simply ignored. Use assert_options to activate them.
Assertions are a nice way to add error checking to your ...
Read now
Unlock full access