[英]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: 请注意:
STFW
(too many newbie questions driving out more specific ones) STFW
(太多新手问题排除了更具体的问题) RTFM
(Cordova docs suck for advanced usage; troubleshooting not really exists) RTFM
(Cordova文档很烂,可以用作高级用法;不存在真正的故障排除方法) What I tried/checked: 我尝试过/检查过的内容:
XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING, true)
XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING, true)
debuggable
in Android Manifest: <application android:debuggable="true" ...>
debuggable
: <application android:debuggable="true" ...>
adb devices
lists device : adb devices
列表设备 :
C:\\Users\\abcdefg>adb devices List of devices attached 0123456789ABCDEF device
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屏幕截图
I'm running out of ideas. 我的想法不多了。
Is there something else to check? 还有其他要检查的东西吗? Anyone having similar problems?
任何人有类似的问题吗?
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: 对于有类似问题的任何人:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.