This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 224156 - On-device debugging on Android
Summary: On-device debugging on Android
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: Cordova (show other bugs)
Version: 7.3
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-21 22:15 UTC by Petr Jiricka
Modified: 2013-01-03 02:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Fix for problems 1 and 2, plus more logging (3.59 KB, text/plain)
2012-12-21 22:15 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2012-12-21 22:15:33 UTC
Created attachment 129635 [details]
Fix for problems 1 and 2, plus more logging

I tried to make on-device debugging work with Android, and here are the issues I've hit so far. I am attaching a patch that fixes some of them:

1. Incorrect parameters passed to adb: -e instead of -d (though I am not sure how it's possible that debugging with emulator worked so far).

2. I was trying with the AngularJS PhoneCat sample, and this application immediately redirects to a sub-URL (with #something), which causes problems with URL matching. This works fine in the desktop case, though I am not sure how, I didn't look at the code.

3. Opening the URL on the device only works if the device is not in standby (with screen turned off), not sure how to fix this.
Comment 1 Jan Becicka 2012-12-24 07:30:35 UTC
> 1. Incorrect parameters passed to adb: -e instead of -d (though I am not sure
> how it's possible that debugging with emulator worked so far).

-e means execute in emulator
-d means execute on device
Comment 2 Petr Jiricka 2013-01-02 08:32:00 UTC
I know - but currently the code says:

isEmulator() ? "-d" : "-e"

It should be the other way around - see the patch.
Comment 3 Jan Becicka 2013-01-02 13:35:46 UTC
Changeset: ff384273911c
Author:    Jan Becicka <jbecicka@netbeans.org>
Date:      2013-01-02 14:33
Message:
Comment 4 Quality Engineering 2013-01-03 02:39:28 UTC
Integrated into 'main-golden', will be available in build *201301030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/ff384273911c
User: Jan Becicka <jbecicka@netbeans.org>
Log: Issue #224156 - On-device debugging on Android