Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android怎么调试,debug模式好像不管用 #17

Open
huoxiangdong opened this issue Nov 23, 2020 · 4 comments
Open

android怎么调试,debug模式好像不管用 #17

huoxiangdong opened this issue Nov 23, 2020 · 4 comments

Comments

@huoxiangdong
Copy link

huoxiangdong commented Nov 23, 2020

有设备显示,但是不能进入,不显示inspect
image

@louis-tru
Copy link
Owner

louis-tru commented Nov 24, 2020

android你可以运行了吗?现在只能用在9.x上面。

android与ios的调式方法是一样的,都是在启动参数中加入--inspect=0.0.0.0:9229,保持你的chrome调式器与手机在同一个网络,然后找到的手机ip地址,写入到你的配置到你的调式器中

@louis-tru
Copy link
Owner

但我在ios上发现了一个调式端口不能监听的问题,这可能是因为ios手机权限的问题,因为ios系统默认不允许访问网络,这导致v8调式器程序不能启动端口监听,然而在ios系统中主动启动一个网络服务是不会弹出询问用户网络权限的,这个问题可以通过主动访问一个外网http地址解决。

@huoxiangdong
Copy link
Author

@louis-tru 嗯,搞定了,端口搞混了,我的android7.0的可以运行,之前不行的,报错,好像是 ffmpeg的问题,查了下说是动态库、静态库的问题,我对这个不熟,加了--disable-asm参数,重新编译,好了

@louis-tru
Copy link
Owner

louis-tru commented Nov 24, 2020

这个我不知道会有其它什么问题,但现在应该是使用了9.x的ndk 的api,如果你想在7.0上运行,你可以把ndk的api设置低一点,这个配置是在tools/configure.js中写死的

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

No branches or pull requests

2 participants