Remote debugging tool like weinre, replacing web inspector with the latest chrome devtools frontend.
You can get it on npm.
npm install chii -g
Start the server with the following command.
chii start -p 8080
Use this script to inject the target code into your webpage.
<script src="http://localhost:8080/target.js"></script>
Then browse to localhost:8080 to start debugging your page.