Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4625] Android: Add ability to debug on device

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-08-23T15:26:05.000+0000
Affected Version/sRelease 1.7.2, Release 2.1.0
Fix Version/sSprint 2012-17 Core, Release 3.0.0
ComponentsAndroid
Labelscore, qe-port
ReporterThomas Huelbert
AssigneeMax Stepanov
Created2011-07-08T10:21:36.000+0000
Updated2012-10-16T20:21:14.000+0000

Description

Currently, debugging only works for emulators/simulators. Please add the ability to debug on device

Comments

  1. Jon Alter 2011-07-08

    Associated Helpdesk Ticket

    http://appc.me/c/APP-423367
  2. Josh Roesslein 2012-07-11

    The two platform changes I can think of to make this work: - Make the Rhino debugger module act as a server on the device. Right now it connects to studio as a client which won't work with adb port forwarding. - If we want to support fastdev this will also require a server/client switch. Right now fastdev works only on emulator by using a special host IP. We would need to switch to using adb forward. - Add tooling support for device discovery, setting up the port forwarding, and installing/launching the app w/ debugger info.
  3. Neeraj Gupta 2012-07-11

    Lets implement this feature for V8 and not for Rhino. I agree with Stephen that Josh and Max together would be the right resources to implement this feature.
  4. Shannon Hicks 2012-07-11

    As a user, I think it makes sense that it would be V8-only.
  5. Max Stepanov 2012-08-22

    Test instructions: Use any Titanium Studio nightly build later than 2012-08-22. (e.g http://10.0.1.52/hudson/view/titanium-dev/job/titanium-installer-mac-development/) Open an app (KS for example) in App Explorer. Set any breakpoints in the source code (e.g app.js) Click on Debug toolbar button in App Explorer and select "Android Device" Switch to Debug perspective (may be prompted) TiStudio Debug view will show active debugger session. Android application logging should appear in TiStudio console. Depending on breakpoint(s) set, the execution may be suspended.
  6. Josh Roesslein 2012-08-23

    Platform changes merged.
  7. Olga Romero 2012-10-16

    Closing as fixed, tested with: Titanium Studio, build: 3.0.0.201210090117 Titanium SDK, build: 3.0.0.v20121014234610 Devices: Nexus7 4.1.2

JSON Source