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?


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

Source: stackoverflow
The answers/resolutions are collected from stackoverflow, are licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 .