1

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?

Asahi
  • 13,378
  • 12
  • 67
  • 87
  • possible duplicate of [Weinre not working, trying to debug?](http://stackoverflow.com/questions/20444851/weinre-not-working-trying-to-debug) – givanse Jul 02 '14 at 01:05

2 Answers2

2

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

http://my-local-ip:8080/client/#anonymous
Asahi
  • 13,378
  • 12
  • 67
  • 87
0

I had the same issue. The issue is gone after changed "127.0.0.1" to real ip like "192.168.0.42".

paul xiong
  • 19
  • 6