inspecting a phone connected by USB shows empty page
Reported by
raxim...@gmail.com,
Dec 8 2017
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36 Steps to reproduce the problem: It's a special issue with network connectivity. We have two devices: 1,laptop 2, mobile We have enabled USB debugging on the mobile. I have a WIFI which needs to be shared among two devices, one of the can connect to it at the same time. If both devices has got the internet connection, it's not a problem. 1, open inspector tab 2, Connect the mobile devices to the desktop 3, open the mobile browser 4, mobile device appear in the inspected devices list 5, remove your internet connection from your desktop 6, click on inspect button - (to inspect your device) 7, white page appears instead of the normal debugger window What is the expected behavior? Even if i'm offline i need to be able to debug my device, as internet connection is not needed, if you serve your app from localhost. (tomcat server running on laptop / notebook) What went wrong? If Google wants to track me when and how frequently i'm opening the debugger tool, it's a problem, but at least they need to tell me, that "pls. plug your computer to your internet, because we want to track you", instead of "go to the hell i'm not going to show the debugger console, i will show you an empty page instead, and you can figure out taking hours what the hell is going on" I have created similar issue some times before, i think that issue hasn't been fixed in the last 3 years. Did this work before? N/A Chrome version: 62.0.3202.94 Channel: stable OS Version: 62.0.3202.94 Flash Version:
,
Dec 8 2017
The device is able to continue to open my app in the mobile brobser, without the need of the internet connection, and the inspector sees the device, even if i hadn't network connection before, just clicking on inspect button simply does not work as expected. (shows empty page)
,
Dec 8 2017
"@Inhouse: Could some one from inhouse team have a look into this as the issue seems to be related to establishing a connection of a machine with two devices (mobile and laptop). Hence adding label TE-NeedsTriageFromHYD Thanks!"
,
Dec 8 2017
To make the bug even more reproducible, wait more time when you disconnect your laptop from the internet, as i realized that if the time gap is not that big, and it has opened once, it will open for a while, but after that it will be closed. I'm under Ubuntu 16.4.3.
,
Dec 8 2017
When you remote debug we need the version of devtools that matches your mobile browser version. And so we load them off the network. Once they are downloaded, they are kept in AppCache, so you only need to have network available once. So ideally you keep the network connection for desktop alive just long enough for it to load all the devtools stuff. There's one workaround though... 1. follow the instructions of https://developer.chrome.com/devtools/docs/remote-debugging-legacy down to (and including) the `adb forward tcp:9222 ...` section. 2. open http://localhost:9222/json/list (on your desktop) 3. find the tab you care about and copy the webSocketDebuggerUrl of it 4. wsurl = webSocketDebuggerUrl.replace('ws://','') 5. open this URL (on your desktop): `chrome-devtools://devtools/bundled/inspector.html?ws=${wsurl}` this should use your desktop's devtools to inspect your mobile browser. and no downloading off the network is required. there may be a small compatibility problem, but it probably will be minor. :) gluck
,
Dec 9 2017
It's fine, but the real issue here is the empty page, which does not tell anything about what i need to do. The title of the issue is pretty unrelated, how Google solved this issue programatically. Google Chrome should never show me empty page. Interestingly chrome is able to catch up within a blink of the eye whether we have internet. Thanks for your solution anyway. I'm always updating both browser it must run on the same version. |
|||
►
Sign in to add a comment |
|||
Comment 1 Deleted