Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

weex debug目前只支持ios吗? #107

Open
ixeagle opened this issue Feb 23, 2018 · 10 comments
Open

weex debug目前只支持ios吗? #107

ixeagle opened this issue Feb 23, 2018 · 10 comments

Comments

@ixeagle
Copy link

ixeagle commented Feb 23, 2018

以前的版本只要在studio里面启动debug,浏览器里就会出现应用列表,现在变了,点击二维码提示需要安装xcode环境,难道不支持android了吗?

@erha19
Copy link
Contributor

erha19 commented Feb 24, 2018

@ixeagle you can scan the qr_code use weex playground app.

@Labmem003
Copy link

支持Android的。你说的在studio里面启动debug是什么意思?设置 WXEnvironment.sRemoteDebugProxyUrl 了吗?

@fanlvwen
Copy link

fanlvwen commented Mar 1, 2018

楼主 你解决了吗 我也和你一样的情况,直接在studio里面开启debug,没有用扫码,现在的最新版不知道怎么开启debug了,weex debug src -e index.vue命令也不识别了,解决了麻烦互相告知

@fanlvwen
Copy link

fanlvwen commented Mar 1, 2018

@Labmem003
WXEnvironment.sDebugServerConnectable = true;
WXEnvironment.sRemoteDebugMode = true;
WXEnvironment.sRemoteDebugProxyUrl = "ws://" + host + ":8088/debugProxy/native";
都是配置好的,老版的devtool一直在用,后来升级到最新版,就只能扫二维码,原先的weex debug src -e index.vue命令也不识别了

@erha19
Copy link
Contributor

erha19 commented Mar 1, 2018

@fanlvwen If you want to use the old version of devtool, you can see the document here http://weex.apache.org/cn/tools/toolkit.html#lian-jie-she-bei.

@fanlvwen
Copy link

fanlvwen commented Mar 1, 2018

@erha19 我想用新版的,不支持了吗?

@erha19
Copy link
Contributor

erha19 commented Mar 1, 2018

@fanlvwen you can use weex debug src to compile the source code of your folder, not need -e option anymore and the new debugger will generate a connection like ws://{host}:{port}/debugProxy/native/{ID}(It's the value of the QR_code on the main page), if you want to connect it automatically, you need change WXEnvironment.sRemoteDebugProxyUrl to the socket you want to connect.

@fanlvwen
Copy link

fanlvwen commented Mar 1, 2018

@erha19
目前debug服务连上 了,但是渲染的js页面出不来,报错not found
是不是url写错了?
mUri:http://192.168.2.235:8088/weex/test.js;

mInstance.renderByUrl("init", mUri.toString(), null, null, WXRenderStrategy.APPEND_ASYNC);

@Labmem003
Copy link

@fanlvwen
建议连上了debug服务后,尝试在电脑访问js的地址,看下是不是真的不能访问;
如果电脑能的话,再检查下客户端直接加载本地js能不能加载,确认是渲染问题还是加载不到的问题;
如果本地js可以渲染的话,检查下手机和电脑是否在同一网络下,排除网段问题;
如果网络也没问题,检查下test.js,看下是不是写法有问题。
还不行的话找 erha19,😄

@myliuyx
Copy link

myliuyx commented Mar 5, 2018

@erha19 我的Android 客户端 weex-debugger 扫码完了也会报错。 直接崩溃了。
image

这是一些Android Studio 的一些错误日志。

安卓这边 引入的库是 :
compile 'com.taobao.android:weex_inspector:0.13.4'
weex-debugger 版本是。
weex-debugger -v
1.0.1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants