简体   繁体   English

如何可靠地使Chrome Devtools与Cordova + Crosswalk一起使用

[英]How to reliable get Chrome Devtools working with Cordova+Crosswalk

About once every few months I have to put days and hours in getting Chrome Developer Tools to work again with Cordova/Crosswalk App on real devices. 我大约每隔几个月就要花费几天和时间才能使Chrome Developer Tools在真实设备上再次与Cordova/Crosswalk应用一起使用。

Please note: 请注意:

  • I have STFW (too many newbie questions driving out more specific ones) 我有STFW (太多新手问题排除了更具体的问题)
  • I have RTFM (Cordova docs suck for advanced usage; troubleshooting not really exists) 我有RTFM (Cordova文档很烂,可以用作高级用法;不存在真正的故障排除方法)
  • It already worked before. 它已经工作过了。
  • I didnt change anything in Cordova/node/gradle/crosswalk environment (like updates, new plugins, or in general any changes outsite of assets/www) 我没有在Cordova / node / gradle / crosswalk环境中进行任何更改(例如更新,新插件,或者通常在资产/ www外的任何更改)
  • I'm developing with Cordova for almost 2 years now. 我与Cordova的关系已经发展了将近2年。 (so I'm experienced) (所以我很有经验)

What I tried/checked: 我尝试过/检查过的内容:

  1. USB debugging IS enabled on mobile device 在移动设备上启用USB调试IS
  2. Added in Crosswalk src: XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING, true) 在Crosswalk src中添加: XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING, true)
  3. Set debuggable in Android Manifest: <application android:debuggable="true" ...> 在Android清单中设置debuggable<application android:debuggable="true" ...>
  4. adb devices lists device : adb devices 列表设备

     C:\\Users\\abcdefg>adb devices List of devices attached 0123456789ABCDEF device 
  5. chrome://inspect/#devices lists Chrome Pages on device, but not Cordova-Crosswalk-App (which was running in foreground when screen was shot): chrome://inspect/#devices Screenshot chrome://inspect/#devices 列出了 chrome://inspect/#devices Chrome页面,但没有列出Cordova-Crosswalk-App (在拍摄屏幕时在前台运行) 上的Chrome页面chrome:// inspect /#devices屏幕截图

  6. Tested on two different Android devices ( both worked 1 week before): 两种不同的Android设备上进行测试( 在1周前可用 ):
    • One Plus Two (Android 5.0.0) 一加二(Android 5.0.0)
    • Custom Chinese Handheld (barcode scanner integrated) (Android 4.2.2) 自定义中文手持式设备(集成了条形码扫描仪)(Android 4.2.2)
  7. Tried to start Developer Tools with latest GapDebug (same effect as in Chrome) 尝试使用最新的GapDebug启动开发人员工具(与Chrome中的效果相同)

I'm running out of ideas. 我的想法不多了。

Is there something else to check? 还有其他要检查的东西吗? Anyone having similar problems? 任何人有类似的问题吗?

EDIT 20.02.2016 编辑20.02.2016

I followed @Tasos advice to check for latest phone drivers. 我按照@Tasos的建议检查最新的电话驱动程序。 I never changed them manually, but after I deinstalled the current driver it worked again like a charm. 我从来没有手动更改过它们,但是在卸载了当前的驱动程序后,它又重新恢复了正常工作。 (no reboot after deinstalling done) (卸载完成后不重新启动)

For anyone having similar issues: 对于有类似问题的任何人:
Run through my checklist. 查看我的清单。
If everything seems fine but it's still not working: deinstall phone drivers. 如果一切正常,但仍然无法正常工作:请卸载手机驱动程序。
If still no good, reboot. 如果仍然不好,请重新启动。
If still no good, install the latest manufacturer drivers. 如果仍然不好,请安装最新的制造商驱动程序。
If still no good, you probably have another problem. 如果仍然不好,您可能还有另一个问题。

I followed @Tasos advice to check for latest phone drivers . 我按照@Tasos的建议检查最新的电话驱动程序 I never changed them manually , but after I deinstalled the current driver it worked again like a charm. 从来没有手动更改过它们 ,但是在卸载了当前的驱动程序后,再次像魅力一样工作了 (no reboot after deinstalling done) (卸载完成后不重新启动)

For anyone having similar issues: 对于有类似问题的任何人:

  • Run through my checklist. 查看我的清单。
  • If everything seems fine but it's still not working: deinstall phone drivers. 如果一切正常,但仍然无法正常工作:请卸载手机驱动程序。
  • If still no good, reboot. 如果仍然不好,请重新启动。
  • If still no good, install the latest manufacturer drivers. 如果仍然不好,请安装最新的制造商驱动程序。
  • If still no good, you probably have another problem. 如果仍然不好,您可能还有另一个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Cordova Crosswalk插件不起作用(`cordova-plugin-crosswalk-webview`) - Cordova Crosswalk plugin not working (`cordova-plugin-crosswalk-webview`) Cordova Crosswalk插件-与Meteor 1.4.2.2结合使用不起作用 - Cordova Crosswalk plugin - usage with Meteor 1.4.2.2 not working 如何将Cordova应用程序迁移到共享模式Crosswalk - How to migrate a Cordova app to Shared mode Crosswalk 如何从Cordova项目中删除Crosswalk? - How to remove Crosswalk from a Cordova project? 如何在Crossova中将Crosswalk用作inAppBrowser的浏览器 - How to use Crosswalk as the browser for inAppBrowser in Cordova 如何结合 Cordova、Crosswalk 和 Ionic 框架 - How to combine Cordova, Crosswalk and Ionic framework 使用chrome进行远程调配仅适用于较旧的人行横道版本[cordova 4] - Remote debuging with chrome only works with older crosswalk version [cordova 4] 使用Chrome DevTools时,Cordova应用程序崩溃了 - Cordova app crashes when using Chrome DevTools cordova-plugin-camera在Crosswalk Android上不起作用(在iOS上工作) - cordova-plugin-camera not working on Crosswalk Android (Works on iOS) 重新安装cordova应用程序后如何自动重新连接Chrome DevTools? - How can I automatically reconnect Chrome DevTools after reinstall a cordova app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM