如何远程调试Crosswalk Webview? [英] How to debug Crosswalk webview remotely?

查看:309
本文介绍了如何远程调试Crosswalk Webview?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Android 5中使用XWalkView。

I'm trying to use XWalkView in Android 5.

当我尝试在chrome:// inspect中检查XWalkView时,可以看到应用正在运行,但没有可供检查的选项。我也尝试过在Canary中进行调试,但从未通过USB身份验证进行调试。

When I try to inspect an XWalkView in chrome://inspect, I can see the name of the app that is running, but no options for inspection. I also attempted in Canary, but it never got past USB auth for debug.

如何使用chrome开发工具调试XWalkView?

How can I use chrome dev tools to debug XWalkView?

推荐答案

远程调试xwalk webview与webview相似,只是webview配置不同。

To debug xwalk webview remotely is similar to webview except the webview config.

a 。配置您的Chrome和设备以进行调试。请参阅 google文章 SO帖子

a. Config your chrome and device for debugging. Refer to google articles or SO post.

b。。配置Webivew进行调试。 ( webview和xwalkview之间的差异),请参见 xwalkview文档

b. Config your webivew for debugging. (difference between webview and xwalkview) Refer to xwalkview doc.

对于xwalkview, XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING,true);

For xwalkview, XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING, true);

(对于网络视图, WebView.setWebContentsDebuggingEnabled(true); //v4.4 + )请参阅此answer

(For webview, WebView.setWebContentsDebuggingEnabled(true); //v4.4+) Refer to this answer.

这篇关于如何远程调试Crosswalk Webview?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆