In Chrome Dev Tools, how to debug the page opened in Remote Devices Wechat in Android through the Remote Devices panel?

first of all, I have been using this feature. My previous phone swiped LineageOS, Android version is Android 8.0, WeChat version 6.6.7, is downloaded from Google Play. For a long time in the past, I have debugged a lot of projects on the mobile phone Wechat by relying on the Remote Devices function in Chrome Dev Tools, which is simply an artifact.

and then recently changed to a new phone, swiped Mokee and Android 8.1, and then found that my new phone, now can not use the Remote Devices in Chrome Dev Tools to debug Wechat"s page. WeChat version 6.6.7, which is downloaded from Google Play.

now the Remote Devices in my computer Chrome Dev Tools has no problem connecting to the phone . There is also a pop-up window that requires USB debugging authorization. The page opened on the phone through mobile Chrome can also be debugged. Not in Wechat. Open the web page in Wechat, and the Remote Devices panel on the Windows computer shows No browsers detected .

I have searched a lot on the Internet, mostly about the X5 kernel, but my native Android Webview, doesn"t work at all, and Wechat"s visit to debugx5.qq.com also shows that I"m not using the X5 kernel.

I don"t understand. I suspect that the new version of Wechat shielded the WebView debugging permissions in the code or disabled the Remote Devices-related interfaces? By the way, Wechat"s developer tool really sucks. This function is very important to me . After all, many online environments are very difficult to load Weinre. I don"t know if there is any better way to debug mobile devices remotely at the front end. Google"s own debugging method should be the best, right? would like to recommend it?

so how can Wechat debug the page in Remote Devices? I don"t know what the reason is for the new phone or what Wechat has done to make it impossible now. The description of the problem may be a bit long. hopes that friends who have stepped on this hole can give some solutions and ask for help.

< hr >

update on 2018-09-01
Last night I tried to paint my new phone as LineageOS16 (Android Pie), without any Google services installed (9.0 Gapps is not yet available). I installed the latest official version of Wechat 6.6.7 through Kuan Market. As soon as I plugged in the computer, I was able to use Remote Devices,. Although the problem is temporarily solved, I would like to know the reason. I hope you can discuss it together.


how to debug the page running in Wechat?

1. Enter http://debugx5.qq.com in Wechat

there are many ways to enter this url. You can send the link to yourself as a message, or you can change the url into a QR code and scan it with Wechat. You can also scan the following QR code directly

image

2.

image

3. usb

image

image

image

4.usb

5.www.baidu.com

6.pcChromechrome://inspect/-sharpdevices

image

7.inspectpcChrome

image


I used the "really bad Wechat developer tool"
that feels like it should have features.


according to my immature understanding of Android webview, if you want to debug an h5 page in app, the debug mode of app should be turned on, otherwise remote debugging cannot be detected. For the official version of Wechat installed in your phone, I don't think this debug mode will be on, so feel at ease that you have tried all the methods upstairs


upstairs with the 'really bad Wechat developer tool', but still can't solve the actual situation raised by this problem.
after many attempts, I summarize a certain successful method:
1. section learn network * environment, open the Remote Devices panel in Chrome Dev Tools;
2, Android mobile phone brush native ROM, such as los, mokee, pe, etc., bring your own section learn network * environment and gapps service, download Wechat on Google Play, none of the first three sentences are indispensable.
3. Finally, the phone USB is connected to the computer. If the above step is prepared successfully, you can see whether the pop-up prompt is allowed for USB debugging. After you click Authorization, Remote Devices will display the page currently open on your phone and complete.

Menu