Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


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

6: Debugging Applications > STEPPING THROUGH CODE

STEPPING THROUGH CODE

In this section you'll finally take a look at how to fix the error in the Debugging App project.

If you recall, an error occurs because the conditional if statement, which requires i to equal 5, is never executed, and labelStr remains null. So when it is assigned to the text property on the <s:Label> component the application errors.

Step through code is a term used to describe examining source code, usually line by line. In Flash Builder the Debug panel provides the tools to step through each line of code, allowing you to see what happens before and after a line of code has been executed.

image Stepping through Code in the Debugging Session

The following steps will take you through fixing the error in the code example about handling the error introduced in the Debugging App project, using the UncaughtErrorEvent class.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial