Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
So far you have learned how to set breakpoints, and how to read variables during the debugging session. Now take a look at handling the error introduced to the project using Watch expressions.
The following steps will take you through handling the error introduced in the Debugging App project using the UncaughtErrorEvent class.
LISTING 6.4: Adding the onAppComplete() method to the <fx:Script> declaration in DebuggingApp.mxml
<?xml version="1.0" encoding="utf-8"?>
<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
firstView="views.DebuggingAppHome"
applicationComplete=“onAppComplete()”>
<fx:Script>
<![CDATA[
protected function onAppComplete():void {}
]]>
</fx:Script>
</s:ViewNavigatorApplication>