23 Squashing bugs

 

No comprehensive scripting guide is complete without addressing the critical topic of debugging. To put it bluntly, debugging can be frustrating. But don’t worry—we’re here to offer valuable insights and practical tips to make debugging more manageable.

23.1 The three kinds of bugs

In the world of scripting, bugs generally fall into three categories: syntax, results, and logic bugs. Results bugs, a relatively new category, has emerged to help address specific scenarios that often perplex scriptwriters. These bug families, in ascending order of complexity, are as follows:

23.2 Dealing with syntax bugs

23.3 Dealing with results bugs

23.4 Dealing with logic bugs

23.4.1 Setting breakpoints

23.4.2 Setting watches

23.4.3 So much more

23.4.4 Don’t be lazy

23.5 Your turn

23.5.1 Start here

23.5.2 Your task

23.5.3 Our take

Summary