Skip to main content
Participant
Jul 25, 2011 8:21 PM UTC
Question

Displaying debug messages in the iPad console

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 is closed to new replies. Start a new post to keep the conversation going.

1 reply

markc888
Inspiring
Jul 29, 2011 12:32 PM UTC

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.

Translate