How to Debug Phonegap Using the PhoneGap Developer App

柔情痞子 提交于 2020-01-12 18:46:44

问题


Phonegap just came out with a way to instantly see your changes to your phonegap app using a local server by using this command:

phonegap serve

And then by downloading the PhoneGap Developer App. The instructions are here: http://app.phonegap.com/

But I'm used to being able to go to about:inspect in Chrome to use remote debugging (http://www.adamwadeharris.com/remote-debugging-in-phonegap-with-chrome-devtools/), but when I go to this page while the Phonegep Developer App is running, nothing shows up underneath the name of my phone. Is there a way to do this with the PhoneGap Developer App?


回答1:


It is not supported. You will need to use something like Weinre instead.




回答2:


In order to remote debug on Android with Chrome, while running in Phonegap Developer App, you should use an apk that was built in debug mode.

You can clone the app repo and build it yourself. You can also download the debug mode apk from my blog.




回答3:


AppGyver's Steroids tooling provides a similar companion app to the PhoneGap Developer App, as well as access to the Chrome Inspector.

You can run Steroids in your Cordova project directly without modifying any files.

(Disclaimer: I'm a programmer for AppGyver.)



来源:https://stackoverflow.com/questions/23201289/how-to-debug-phonegap-using-the-phonegap-developer-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!