Breakpoints
No matter how careful you are when writing code, your scripts are likely to contain errors, or bugs, that prevent them from running the way you intended. Debugging is the process of locating and fixing errors in your scripts. Breakpoints is the most effective way to locate errors to fix them.
There are several ways to set/remove a breakpoint:
- Click on the gutter
- Or press F6
- Or click on the toolbar button

Click Run to execute the script.
When the Perl interpreter reaches a breakpoint, the execution of the script is stopped and DzSoft Perl Editor displays a list of all the script's variables and their current values. To continue the execution, click the Continue Execution button.
Notes:
- Set the breakpoints only between separate commands, for example:
print "Content-type: text/html\n\n";
$variable = 'abc';
l print "<html><h1>Hello!</h1></html>\n";
print <<END;
<html><head>
l <title>
END
while ($flag)
l {
# ...
}
|