Debugging AIR (as3) application on Android

Now when i compile debug app for android, say i get error or any other exception, comparing to Flash Builder which shows what line caused the issue (most of the times)
im not able to figure out in intellij 14 where errors come from.

I do get
[Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.

but this gives now clues what so ever. Am i missing some vital ways of debugging air apps or is the debugger in intellij overly bad ?

Comparing to Flash or Flash Builder, they both just to the source line or at least indicate in some way where error come from, in Flash one can also use a panel to see latest variables and instances which 99% help out on abstract issues like #1009.

3 comments
Comment actions Permalink

Are you debugging on emulator or on real device?
When I debug on emulator and NullPointerException happens debugger stops for me on the problematic line and also I see a stack trace in debug console. Also when I resume the app Emulator shows modal dialog with stack trace.

0
Comment actions Permalink

Ohh good point, forgot to bring that up.
Debugging on real device, using Nexus 4 for this.

0
Comment actions Permalink

Can you please add "com.intellij.lang.javascript.flex.debug" (without quotes) to Help | Configure Debug Log Settings, reproduce the problem and then attach idea.log file here (Help | Show Log)?

0

Please sign in to leave a comment.