Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6727837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:05:52+00:00 2026-05-26T10:05:52+00:00

Possible Duplicate: Debugging iOS/AIR content on the device I’m porting my Air app to

  • 0

Possible Duplicate:
Debugging iOS/AIR content on the device

I’m porting my Air app to iPad. I compiled it with:

adt -package -target ipa-ad-hoc -storetype pkcs12 -keystore store.p12 -storepass ****** -provisioning-profile profile.mobileprovision app.ipa app.xml app.swf

App was deployed on device through iTunes. When I launch app on iPad I get a black screen. Looks like some exception is thrown or something like that. How can I see that exception? Or if to be more general, how do you guys debug iOS app on Windows?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:05:52+00:00Added an answer on May 26, 2026 at 10:05 am

    As far as my knowledge goes there is no remote debugging with AIR and iOS possible. So you have to revert to creating a scrolling text field somewhere and show log/debug texts there.

    Edit: See Debugging iOS/AIR content on the device.

    Edit2: Short tutorial video on debugging on iOS via Flash Prof CS5.5: http://www.youtube.com/watch?v=DanNBN89uhs

    You can use the uncaughtErrorEvents property (found in your main documents loaderInfo property) to catch any unhandled error and show it also in the text field (see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/LoaderInfo.html#uncaughtErrorEvents)

    There is also the possibility to define compiler constants to enclose debug log statements within actionscript so you can easily turn them on and off.

    I normally also test first the application on my windows before creating an iPad version of it.

    Final tip: remember that only your main swf can contain actionscript.

    Edit:

    Here is a example, try to add this code before any other actionscript is executed:

    import flash.events.UncaughtErrorEvent;
    import flash.events.Event;
    import flash.text.TextField;
    import flash.text.TextFormat;
    import flash.text.TextFieldType;
    
    // ...
    // textLog contains errors
    var textLog: TextField;
    
    // make sure there is a uncaughtErrorEvents property (in case of older player)
    if (this.loaderInfo.hasOwnProperty('uncaughtErrorEvents'))
    {
      // listen for uncaught error events
      this.loaderInfo['uncaughtErrorEvents'].addEventListener(UncaughtErrorEvent.UNCAUGHT_ERROR, handleUncaughtError);
      // make sure text field stays on top
      this.addEventListener(Event.ENTER_FRAME, handleEnterFrame);
      // create TextField at bottom using 1/5th of stage height
      textLog = new TextField();
      textLog.width = this.stage.stageWidth;
      textLog.height = Math.floor(0.20 * this.stage.stageHeight);
      textLog.y = this.stage.stageHeight - textLog.height;
      textLog.multiline = true;
      textLog.wordWrap = true;
      textLog.defaultTextFormat = new TextFormat('_sans', 10);
      textLog.type = TextFieldType.DYNAMIC;
      textLog.background = true;
      textLog.backgroundColor = 0xCCCCCC;
      this.addChild(textLog);
      textLog.appendText('Catching errors\n');
    }
    
    // show error and scroll to bottom line
    function handleUncaughtError(anEvent: UncaughtErrorEvent): void
    {
      textLog.appendText(anEvent.error + '\n');
      textLog.scrollV = textLog.maxScrollV;
    }
    
    // make sure textLog stays on top of all other children
    function handleEnterFrame(anEvent: Event): void
    {
      if (this.getChildIndex(this.textLog) != this.numChildren - 1)
      {
        this.addChild(this.textLog);
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Debugging JavaScript in IE7 Firefox has Web Developer plugin and Firebug for
Possible Duplicate: Seemingly useless debugging environment for Android I've obviously been spoiled by Visual
Possible Duplicate: C#/.NET analysis tool to find race conditions/deadlocks I am debugging an application
Possible Duplicate: What's wrong with Delphi's “with” I am have a problem debugging code
Possible Duplicate: Mixing C pre/post increment/decrement with Objective-C dot operator works? I'm debugging a
Possible Duplicate: Use Visual Studio web.config transform for debugging I have an asp.net application
Possible Duplicate: Can I run a .NET garbage collection from WinDbg? I'm debugging a
Possible Duplicate: How can you stop Visual Studio rearranging its Windows when debugging Whenever
Possible Duplicate: How to avoid entering library's source files while debugging in Qt Creator
Possible Duplicate: VS debugging “quick watch” tool and lambda expressions I'm curious if there

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.