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

Unable to view application source when debugging Android project on Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.0.0
    • Fix Version/s: Release 5.1.3
    • Component/s: Android, Debugging
    • Labels:
      None
    • Environment:

      Windows 10 Pro
      Appc Studio: 5.0.0.201712081732
      Galaxy Note 3 7.1.2
      SDK: 7.1.0.GA, 7.0.2.GA

      Description

      Description

      When debugging an Android app on Windows, I'm unable to see the source, the below error is thrown in the logs, and a tab that looks like the attached image is shown. This occurs for me on 2 different Windows machines with 2 different Android devices. It happens for Alloy or classic apps.

      The functionality of debugging works, i.e I can step through code, see variables, I can even see the internal JS code of the SDK (kroll.js, events.js etc.), I just cant see any of the apps js code.

      Following https://wiki.appcelerator.org/display/guides2/Debugging+Android+Apps+with+3rd-party+Tools to debug through chrome works fine and i see the source code

      !ENTRY org.eclipse.debug.core 4 125 2018-03-29 14:28:30.815
      !MESSAGE Error logged from Debug Core: 
      !STACK 0
      java.lang.IllegalArgumentException: Path must include project and resource name: /app.js
      	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
      	at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:2137)
      	at org.eclipse.core.internal.resources.Container.getFile(Container.java:208)
      	at com.aptana.debug.core.sourcelookup.LocalFileSourceContainer.findSourceElements(LocalFileSourceContainer.java:45)
      	at org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer.findSourceElements(CompositeSourceContainer.java:81)
      	at org.eclipse.debug.core.sourcelookup.containers.CompositeSourceContainer.findSourceElements(CompositeSourceContainer.java:48)
      	at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupParticipant.findSourceElements(AbstractSourceLookupParticipant.java:70)
      	at com.aptana.debug.core.sourcelookup.RemoteContentSourceLookupParticipant.findSourceElements(RemoteContentSourceLookupParticipant.java:27)
      	at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector$SourceLookupQuery.run(AbstractSourceLookupDirector.java:142)
      	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      	at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.doSourceLookup(AbstractSourceLookupDirector.java:505)
      	at org.eclipse.debug.core.sourcelookup.AbstractSourceLookupDirector.getSourceElement(AbstractSourceLookupDirector.java:785)
      	at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility.lookup(SourceLookupFacility.java:343)
      	at org.eclipse.debug.internal.ui.sourcelookup.SourceLookupFacility$SourceLookupJob.run(SourceLookupFacility.java:738)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      

      Steps to reproduce

      1. Debug an app for Android, making sure to place a breakpoint and that the device is unlocked

      Actual

      When the breakpoint is hit the source is not shown, but debugging is functional, i.e I can step through the code and view variables in the context

      Expected

      Source should be shown

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              eharris Ewan Harris
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: