[TIMOB-11373] Android Device Debugging: console window fails to display console output after port forward
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-10-10T23:46:09.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.0.0, 2012 Sprint 20 |
Components | n/a |
Labels | android-device-debugger, core, qe-and100112 |
Reporter | Payminder Singh |
Assignee | Bill Dawson |
Created | 2012-09-10T15:20:58.000+0000 |
Updated | 2013-01-09T15:29:54.000+0000 |
Description
Titanium Studio Console output fail to display output results.
Steps to Reproduce:
1. Create default project, add sample code:
Ti.API.info('INFO LOGGED');
2. Run 'debug' on Android Device. Port forward message should appear on console.
3. Launch app from device.
Actual Result:
Titanium Studio console log fail to display the console output
Expected Result:
Titanium Studio console log display the console output as DDMS or Catlog.
Attachments
File | Date | Size |
---|---|---|
ddms_log.txt | 2012-09-10T15:21:26.000+0000 | 422331 |
log.txt | 2012-09-10T15:21:26.000+0000 | 10419 |
Screen Shot 2012-09-10 at 3.07.54 PM.png | 2012-09-10T15:21:26.000+0000 | 73730 |
Reproducible Tested on: Titanium Studio: 3.0.0.201209171527 Titanium SDK: 3.0.0.v20120918143313 OS: OS X 10.8 (Mountain Lion) Device Tested: HTC EVO (4.0.3)
There is no special setup required to get the 'port forward' message, it's just a debugging in device process. Same comment for TISTUD-2290
I believe this is a platform issue. The log messages are not available via the debug process. The messages do appear in the log cat through. One thing to note is we follow the same process for connecting to the debug for iOS, and the log messages are available.
Need TISTUD-2388 in order to work on this.
Studio will also need to be changed, but we also had to change something to give studio the ability to see the logcat on device.
Testing Notes
This is for testing without Studio changes, to "prove" that our new builder.py command named "logcat" (which does nothing other than make the device/emulator's logcat available as a separate process available to Studio) works fine.In a Terminal window, run the new builder.py like this: (You'll need to provide the path to the builder.py of course):
So for me, for example, I run:
The -d means device. You could alternatively make it -e for emulator or -s.
Leave it running.
Use Studio to install an app that contains a
Ti.API.info("whatever you want");
statement in it on your attached device or running emulator.Run the app on the device.
Check the terminal window that has logcat running -- it should show the info (or debug or whatever) statement.
Go to a separate Terminal window.
Run
ps -e
and find the PID of the python process running builder.py with the "devicelog" command.Run
kill -3 [pid]
.Switch back over to the Terminal window where logcat was running. It should show a message that a signal 3 was received and it was terminated.
Reopened the wrong ticket
Bill, this works fine, but can you return the messages from the builder.py process that launched the debug process? Currently studio has to hold on to two processes, one for the install on device and the other for logcat. The install on the device process does not output any messages.
On further inspection, the Debug on emulator workflow is very similar, so this is fine