Uploaded image for project: 'Appcelerator Studio'
  1. Appcelerator Studio
  2. TISTUD-225

Debugging doesn't work in Android on "first launch" of emulator

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Titanium Studio M3 (Public beta 1)
    • Fix Version/s: Titanium Studio 1.0.6
    • Component/s: Android
    • Labels:
    • Environment:

      osx 10.6.6, Ti Studio 1.0.0.201103291333, Titanium Mobile 1.7.0 f7b3d13, launching Android 2.1 Emulator

      Description

      • Open Ti Studio (no emulator should be open already)
      • Open a mobile project
      • Set a breakpoint somewhere in app.js
      • Debug-launch the app

      Because the emulator isn't already running, it is – of course – launched. The app gets installed successfully, but the breakpoint is not hit. The problem is not a timeout for the debugger, rather:

       
      D/KrollProxy(  250): (main) [7,230] New: AndroidModule
      D/KrollProxy(  250): (main) [37,267] New: DebugModule
      D/DebugModule(  250): (main) [13,280] Read debug config: {"enabled":false}
      E/DebugModule(  250): (main) [3,283] JSONObject["port"] not found.
      E/DebugModule(  250): org.json.JSONException: JSONObject["port"] not found.
      E/DebugModule(  250): 	at org.json.JSONObject.get(JSONObject.java:287)
      E/DebugModule(  250): 	at org.json.JSONObject.getInt(JSONObject.java:347)
      E/DebugModule(  250): 	at ti.modules.titanium.debug.DebugModule.readDebugConfig(DebugModule.java:75)
      E/DebugModule(  250): 	at ti.modules.titanium.debug.DebugModule.<init>(DebugModule.java:39)
      E/DebugModule(  250): 	at com.billdawson.membust.MembustApplication.bootModules(MembustApplication.java:53)
      E/DebugModule(  250): 	at org.appcelerator.titanium.TiApplication.bindModules(TiApplication.java:99)
      E/DebugModule(  250): 	at org.appcelerator.titanium.kroll.KrollBridge.<init>(KrollBridge.java:39)
      E/DebugModule(  250): 	at org.appcelerator.titanium.TiContext.createTiContext(TiContext.java:318)
      E/DebugModule(  250): 	at org.appcelerator.titanium.TiLaunchActivity.onCreate(TiLaunchActivity.java:89)
      E/DebugModule(  250): 	at org.appcelerator.titanium.TiRootActivity.onCreate(TiRootActivity.java:40)
      E/DebugModule(  250): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
      E/DebugModule(  250): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
      E/DebugModule(  250): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
      E/DebugModule(  250): 	at android.app.ActivityThread.access$2200(ActivityThread.java:119)
      E/DebugModule(  250): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
      E/DebugModule(  250): 	at android.os.Handler.dispatchMessage(Handler.java:99)
      E/DebugModule(  250): 	at android.os.Looper.loop(Looper.java:123)
      E/DebugModule(  250): 	at android.app.ActivityThread.main(ActivityThread.java:4363)
      E/DebugModule(  250): 	at java.lang.reflect.Method.invokeNative(Native Method)
      E/DebugModule(  250): 	at java.lang.reflect.Method.invoke(Method.java:521)
      E/DebugModule(  250): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
      E/DebugModule(  250): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
      E/DebugModule(  250): 	at dalvik.system.NativeStart.main(Native Method)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mculpepper Marshall Culpepper
                Reporter:
                billdawson Bill Dawson
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: