New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Remote Web Inspector in Production #49

Open
mwbrooks opened this Issue Mar 17, 2014 · 14 comments

Comments

Projects
None yet
@mwbrooks
Member

mwbrooks commented Mar 17, 2014

Is it possible? How?

@mwbrooks mwbrooks added the discussion label Mar 17, 2014

@timkim

This comment has been minimized.

Show comment
Hide comment
@timkim

timkim Mar 17, 2014

Contributor

The only way I know how to enable remote web inspector is by turning on various settings outside the app. ie, turning on dev mode, connecting to the comp, then goto chrome/safari.

Are we suggesting to make these workflow easier by a one-click kinda thing?

Contributor

timkim commented Mar 17, 2014

The only way I know how to enable remote web inspector is by turning on various settings outside the app. ie, turning on dev mode, connecting to the comp, then goto chrome/safari.

Are we suggesting to make these workflow easier by a one-click kinda thing?

@mwbrooks

This comment has been minimized.

Show comment
Hide comment
@mwbrooks

mwbrooks Mar 17, 2014

Member

Nah, I think those steps are standard developer steps that we can document but not streamline.

As far as I know, you cannot debug (use remote web inspector) on an app that's compiled for production or ah hoc. I'd like to find a way to enable it (compiler flag?) otherwise find something else that works.

Member

mwbrooks commented Mar 17, 2014

Nah, I think those steps are standard developer steps that we can document but not streamline.

As far as I know, you cannot debug (use remote web inspector) on an app that's compiled for production or ah hoc. I'd like to find a way to enable it (compiler flag?) otherwise find something else that works.

@brettstack

This comment has been minimized.

Show comment
Hide comment
@brettstack

brettstack Apr 28, 2014

I'm failing to get remote debugging working even on development builds. It works when I run the app by itself, but it's not showing up in about:inspect when I run it through Phonegap App.

I'm failing to get remote debugging working even on development builds. It works when I run the app by itself, but it's not showing up in about:inspect when I run it through Phonegap App.

@mguimard

This comment has been minimized.

Show comment
Hide comment
@mguimard

mguimard Dec 18, 2014

Cannot get the remote debugging working also with the phonegap developer app downloaded from google play. The only way to get remote debugging working for me is to clone this repo and run the app on my devices. But this is extremely slow, slower than recompiling an apk and deploy it.

Is there any work in progress to enable remote debugging ?

Cannot get the remote debugging working also with the phonegap developer app downloaded from google play. The only way to get remote debugging working for me is to clone this repo and run the app on my devices. But this is extremely slow, slower than recompiling an apk and deploy it.

Is there any work in progress to enable remote debugging ?

@mwbrooks

This comment has been minimized.

Show comment
Hide comment
@mwbrooks

mwbrooks Dec 18, 2014

Member

@mguimard I feel your pain, but unfortunately we haven't had the time available to look into remote debugging.

At the moment, the best balance is to clone the PhoneGap Developer App repo, build it yourself (replacing the App Store download, unless you change the ID). When an app is built in debug mode, then you can can successfully discover and connect to it with Remote Web Inspector.

Member

mwbrooks commented Dec 18, 2014

@mguimard I feel your pain, but unfortunately we haven't had the time available to look into remote debugging.

At the moment, the best balance is to clone the PhoneGap Developer App repo, build it yourself (replacing the App Store download, unless you change the ID). When an app is built in debug mode, then you can can successfully discover and connect to it with Remote Web Inspector.

@sylfabre

This comment has been minimized.

Show comment
Hide comment
@sylfabre

sylfabre Dec 27, 2014

This feature would be awesome !

This feature would be awesome !

@publipresse

This comment has been minimized.

Show comment
Hide comment
@publipresse

publipresse Feb 18, 2015

Yes, it would be so great and time saving a lot !!

Yes, it would be so great and time saving a lot !!

@bardu

This comment has been minimized.

Show comment
Hide comment
@bardu

bardu Feb 18, 2015

+1
For me it seems weinre doesn't fit the bill.

bardu commented Feb 18, 2015

+1
For me it seems weinre doesn't fit the bill.

@koxder

This comment has been minimized.

Show comment
Hide comment
@koxder

koxder Mar 15, 2015

Hi,
I am going to tell you my experience. I have this enviroment to develop:

  • Vagrant machine ubuntu 12.04 with latest phonegap version.
  • Host machine is an ubuntu 14.04 and I use Genymotion to deploy my app.

when I deploy my app on genymotion with app phonegap developer I can debug through google chrome inspect tool. I install on Genymotion app phonegap developer that I get from this repository:

  • phonegap-app-developer/resources/release/android/PhoneGap-1.3.0-release.apk

I follow the same procedure on my mobile (zte blade l2) and I fail to debug with google chrome inspect tool. My mobile is correct installed ( is listed with adb devices) and i can debug google chrome tab from my mobile on my computer google inspect tool.

Anyone knows if I have to do some extra config to get my mobile working with google inspector tool.

Thanks.

koxder commented Mar 15, 2015

Hi,
I am going to tell you my experience. I have this enviroment to develop:

  • Vagrant machine ubuntu 12.04 with latest phonegap version.
  • Host machine is an ubuntu 14.04 and I use Genymotion to deploy my app.

when I deploy my app on genymotion with app phonegap developer I can debug through google chrome inspect tool. I install on Genymotion app phonegap developer that I get from this repository:

  • phonegap-app-developer/resources/release/android/PhoneGap-1.3.0-release.apk

I follow the same procedure on my mobile (zte blade l2) and I fail to debug with google chrome inspect tool. My mobile is correct installed ( is listed with adb devices) and i can debug google chrome tab from my mobile on my computer google inspect tool.

Anyone knows if I have to do some extra config to get my mobile working with google inspector tool.

Thanks.

@Globegitter

This comment has been minimized.

Show comment
Hide comment
@Globegitter

Globegitter Jul 27, 2015

@timkim @mwbrooks Is there any update on that? Any way this is going to be possible?

EDIT: Quite interesting I found https://crosswalk-project.org/documentation/android/android_remote_debugging.html#Enable-debugging-at-build-time-for-Android
I wonder if any of these options would be a possibility?

@timkim @mwbrooks Is there any update on that? Any way this is going to be possible?

EDIT: Quite interesting I found https://crosswalk-project.org/documentation/android/android_remote_debugging.html#Enable-debugging-at-build-time-for-Android
I wonder if any of these options would be a possibility?

@mwbrooks

This comment has been minimized.

Show comment
Hide comment
@mwbrooks

mwbrooks Jul 27, 2015

Member

Hi @Globegitter, we haven't prioritized this issue yet. However, my understanding is that a release build will typically disable the Remote Web Inspector support. Your link above also mentions:

Remote debugging can be disabled by passing the --release option to the build.

The alternative may be something such as weinre or vorlon.js.

If you're interesting at taking a stab at this, feel free to drop any research notes into this issue!

Member

mwbrooks commented Jul 27, 2015

Hi @Globegitter, we haven't prioritized this issue yet. However, my understanding is that a release build will typically disable the Remote Web Inspector support. Your link above also mentions:

Remote debugging can be disabled by passing the --release option to the build.

The alternative may be something such as weinre or vorlon.js.

If you're interesting at taking a stab at this, feel free to drop any research notes into this issue!

@boustanihani

This comment has been minimized.

Show comment
Hide comment
@boustanihani

boustanihani May 7, 2017

How about allowing the users to download a version of the app (prebuilt with dev mode) from your site directly? This could solve the problem.

How about allowing the users to download a version of the app (prebuilt with dev mode) from your site directly? This could solve the problem.

@surajpindoria

This comment has been minimized.

Show comment
Hide comment
@surajpindoria

surajpindoria May 8, 2017

Member

The easiest way to accomplish remote debugging with the developer app would be to clone this repo down and create a build on your machine. Alternatively if you use the command line to build a version of your app and install that to your mobile device it will allow you to remote debug.

Member

surajpindoria commented May 8, 2017

The easiest way to accomplish remote debugging with the developer app would be to clone this repo down and create a build on your machine. Alternatively if you use the command line to build a version of your app and install that to your mobile device it will allow you to remote debug.

@mdorazio

This comment has been minimized.

Show comment
Hide comment
@mdorazio

mdorazio Aug 16, 2017

I want to second boustanihani's suggestion to provide a pre-built debug-ready (i.e. unsigned) version of the developer app in addition to the app store-ready ones. I'm on Windows and have spent the last two hours downloading libraries, SDKs, etc. in an attempt to get a working version of the developer app to compile, so far with no luck. For newbies such as myself who just want an easy way to debug apps without having to go through the build process every time, this is an unpleasant experience.

I want to second boustanihani's suggestion to provide a pre-built debug-ready (i.e. unsigned) version of the developer app in addition to the app store-ready ones. I'm on Windows and have spent the last two hours downloading libraries, SDKs, etc. in an attempt to get a working version of the developer app to compile, so far with no luck. For newbies such as myself who just want an easy way to debug apps without having to go through the build process every time, this is an unpleasant experience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment