[TIMOB-4625] Android: Add ability to debug on device
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-23T15:26:05.000+0000 |
Affected Version/s | Release 1.7.2, Release 2.1.0 |
Fix Version/s | Sprint 2012-17 Core, Release 3.0.0 |
Components | Android |
Labels | core, qe-port |
Reporter | Thomas Huelbert |
Assignee | Max Stepanov |
Created | 2011-07-08T10:21:36.000+0000 |
Updated | 2012-10-16T20:21:14.000+0000 |
Description
Currently, debugging only works for emulators/simulators.
Please add the ability to debug on device
Associated Helpdesk Ticket
http://appc.me/c/APP-423367The 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.
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.
As a user, I think it makes sense that it would be V8-only.
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.
Platform changes merged.
Closing as fixed, tested with: Titanium Studio, build: 3.0.0.201210090117 Titanium SDK, build: 3.0.0.v20121014234610 Devices: Nexus7 4.1.2