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.
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.
> 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
I know - but currently the code says: isEmulator() ? "-d" : "-e" It should be the other way around - see the patch.
Changeset: ff384273911c Author: Jan Becicka <jbecicka@netbeans.org> Date: 2013-01-02 14:33 Message:
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