Skip to main content
Participant
July 25, 2011
Question

Displaying debug messages in the iPad console

  • July 25, 2011
  • 1 reply
  • 597 views

Hi,

I have an Air app that works fine in the Flash Professional CS5.5 debugger, but hangs when I put it on the iPad.  I can use xcode to bring up the iPad console in the "Organizer" window.

My question is how can my Air app send debug messages to the iPad console?

Thanks,

Bob

This topic has been closed for replies.

1 reply

markc888
Inspiring
July 29, 2011

You could add a dynamic text field to your app, add it to the stage and send notifications for whatever you need to debug.

e.g. Just as you would use the trace("this message "+variableValue); in Flash to debug using the output window.

You would use

textfield_name.appendText("this message "+variableValue+"\n");

or if you were listening for error you could use something like:

private function errorXML(e:Event):void {

textfield_name.appendText("XML Error:"+ e);

}

I'm not sure how or if you can utilise the Xcode organiser with an AIR app.