1 Reply Latest reply on Jul 3, 2008 8:52 AM by fccobb

    Setting A Watch On Variables

      I'm probably doing something really stupid here.

      I'm trying to debug my app and I can't get the Flex debugger to watch variables.

      I have written pretty much the simplest app I can think of to see what I am doing wrong :

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="main()">
      <mx:Script>
      <![CDATA[
      private function main():void {
      var astring:String = "Hello";
      }
      ]]>
      </mx:Script>
      </mx:Application>

      And I have set a watch on astring. It adds it to the expression list but always displays 'astring = ... ' in the debugger never updating the value. It does the same thing if I try and use the debugger with my main app as well with any variable I care to try.

      I would be very grateful if someone could tell me what I am doing wrong.

      Thanks a lot.

      Chris