• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Debugging > General Approaches to a Bug-Free Life

General Approaches to a Bug-Free Life

While programming Flash, your life will never be truly “bug-free.” There are, however, many steps you can take to uncover bugs, fix them, and ensure that there are no obvious ones waiting to reveal themselves at the least opportune time. Most of these quality assurance techniques apply to any process—not just Flash programming. We’ll cover built-in Flash features later this chapter in the section, “Using the Debugger.” First, let’s look at a few general ways to find, define, fix, and prevent bugs.

Finding and Defining Bugs

The first—and most important—step in debugging is to find the bug. Some bugs will prove to be elusive, whereas others will be so significant that you won’t be able to make the movie run. I classify bugs into three categories: those that prevent the movie from even starting, those that cause the movie to effectively stop running, and those with an error in logic that—while still allowing the movie to run—displays inaccurate results. The first type is the easiest to find; the third type is the most difficult.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint