I use the Safari Web Inspector to remotely debug the Cordoba application that I create. It used to work like a charm, but now I run into a problem. After starting the inspector, after a couple of seconds it seems that the web inspector is disconnecting from the device. The inspector is still open, but the inspector is not updated, and the items on the device will no longer be highlighted when it freezes in the inspector (this works for the first few seconds). I can start it for a couple of seconds by closing the inspector and starting it again.
I tried debugging using Chrome and ios_webkit_debug_proxyinstead, which doesn't turn off. However, it has other problems that do not make it a viable solution.
I tried using Safari Technology Preview (11.0 R35) as well as the current stable version of Safari (10.1.2), but the problem occurs in both of them. I also tried switching the lightning-fast cable and the USB port to my computer, which does not matter.
I found that the following error is logged (using the Console application) when the inspector shuts down:
RWIServiceLockdownConnection: Disconnecting because we failed to read a message from webinspectord. This could mean almost anything.
This seems to be related to Cordova, as the error does not occur when I view the normal Mobile Safari page.
What can cause this and how to solve it?
source
share