Search code examples
androidwebviewandroid-webviewremote-debuggingweinre

Debugging web page in Android app using weinre - cannot find debug target


I am trying to debug a web page inside my Android app's WebView.

I've setup and started weinre following these and these instructions, modified my web page adding

<script src="http://my-local-ip:8080/target/target-script-min.js"></script>

Now, as I understand, I should open http://localhost:8080/client/#anonymous in Chrome and find my debug target there. However the targets list is empty.

What have I missed or done wrong?


Solution

  • Had to use IP address both in Debug Target and Debug Client, i.e.

    http://my-local-ip:8080/client/#anonymous