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

Debugger: Debug on Android fails with exception during app launch on device

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 5.1.2
    • Fix Version/s: None
    • Component/s: Android, Debugging
    • Labels:
      None
    • Environment:

      Mac OS 10.14.3, Win 10
      Ti SDK: 8.0.1.v20190430172038
      Appc CLI: 7.0.10
      Node: 8.12.0
      JDK: 1.8.0_144
      Studio: 5.1.2.201903111843

      Description

      When trying to debug a titanium project on Android device it fails with an exception at the time of app launch.

      Steps to Reproduce:
      1. Create a titanium project
      2. Select to debug on Android device

      Actual Result:
      The project builds and installs on device successfully. When the debugger tries to launch the app on the device it fails with exception as below:

      !MESSAGE An internal error occurred during: "Launching Android Device - debug_test".
      !STACK 0
      java.lang.NullPointerException
      	at com.axway.inspector.protocol.Inspector.sendCommandAsync(Inspector.java:240)
      	at com.axway.inspector.protocol.Inspector.sendCommandAsync(Inspector.java:231)
      	at com.axway.inspector.debugger.Debugger.enable(Debugger.java:67)
      	at com.axway.inspector.model.InspectorDebugTarget.setupSession(InspectorDebugTarget.java:848)
      	at com.appcelerator.titanium.android.debug.core.inspector.V8InspectorDebugTarget.setupSession(V8InspectorDebugTarget.java:33)
      	at com.axway.inspector.model.InspectorDebugTarget.init(InspectorDebugTarget.java:832)
      	at com.appcelerator.titanium.android.ui.launching.device.AndroidDebugOnDeviceLaunchConfigurationDelegate.connectInspectorBasedDebugger(AndroidDebugOnDeviceLaunchConfigurationDelegate.java:267)
      	at com.appcelerator.titanium.android.ui.launching.device.AndroidDebugOnDeviceLaunchConfigurationDelegate.connect(AndroidDebugOnDeviceLaunchConfigurationDelegate.java:211)
      	at com.appcelerator.titanium.android.ui.launching.device.AndroidDebugOnDeviceLaunchConfigurationDelegate.launch(AndroidDebugOnDeviceLaunchConfigurationDelegate.java:119)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:862)
      	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:720)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1029)
      	at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1243)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      

      Expected Result:
      The debugger should work on Android device

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: