Android Debugger Issue

You must Login before you can answer or comment on any questions.

Having a few problems with the Android debugger and hope somebody might be able to help.

It seems whenever I add a breakpoint beyond app.js my app crashes with the 'stopped unexpectedly' error message.

I'm running a 1.8.x continuous build and employing the commonJS approach. everything works fine on the IoS side of things, and the app runs fine on the Android Emulator if it's just built instead of debugged.

Here's the console output:

E/TiUncaughtHandler(  590): (kroll$5) [6,50034] Sending event: exception on thread: kroll$5 msg:java.lang.NullPointerException; Titanium 1.8.0,2011/09/30 16:42,58a2236
E/TiUncaughtHandler(  590): java.lang.NullPointerException
E/TiUncaughtHandler(  590):     at ti.modules.titanium.debug.DebugServer.e(Unknown Source)
E/TiUncaughtHandler(  590):     at ti.modules.titanium.debug.DebugServer.a(Unknown Source)
E/TiUncaughtHandler(  590):     at ti.modules.titanium.debug.g.threadStarted(Unknown Source)
E/TiUncaughtHandler(  590):     at org.appcelerator.titanium.kroll.KrollContext.initContext(KrollContext.java:185)
E/TiUncaughtHandler(  590):     at org.appcelerator.titanium.kroll.KrollHandlerThread.onLooperPrepared(KrollHandlerThread.java:74)
E/TiUncaughtHandler(  590):     at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:85)
E/AndroidRuntime(  590): FATAL EXCEPTION: kroll$5
E/AndroidRuntime(  590): java.lang.NullPointerException
E/AndroidRuntime(  590):    at ti.modules.titanium.debug.DebugServer.e(Unknown Source)
E/AndroidRuntime(  590):    at ti.modules.titanium.debug.DebugServer.a(Unknown Source)
E/AndroidRuntime(  590):    at ti.modules.titanium.debug.g.threadStarted(Unknown Source)
E/AndroidRuntime(  590):    at org.appcelerator.titanium.kroll.KrollContext.initContext(KrollContext.java:185)
E/AndroidRuntime(  590):    at org.appcelerator.titanium.kroll.KrollHandlerThread.onLooperPrepared(KrollHandlerThread.java:74)
E/AndroidRuntime(  590):    at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:85)
W/ActivityManager(   60):   Force finishing activity com.tvgmedia.lidl/ti.modules.titanium.ui.TiTabActivity
W/ActivityManager(   60): Activity pause timeout for HistoryRecord{450abb10 com.tvgmedia.lidl/ti.modules.titanium.ui.TiTabActivity}
I/Process (  590): Sending signal. PID: 590 SIG: 9
I/ActivityManager(   60): Process com.tvgmedia.lidl (pid 590) has died.
I/WindowManager(   60): WIN DEATH: Window{451b2b40 com.tvgmedia.lidl/com.tvgmedia.lidl.Lidlproj002Activity paused=false}
Any help would be grateful...

— asked 2 years ago by Chris Leyton
1 Comment
  • Did you ever manage to resolve this problem? Having a similar issue

    — commented 2 years ago by Ben Johnston

1 Answer

Hi Chris,

What type of breakpoint are you talking about? If possible, can you show some coding so we can see a better example. From the printout, there seem to be some issue with the Ti Tab Activity.

Your Answer

Think you can help? Login to answer this question!