- Go to http://jsconsole.com/?:listen to generate a unique key.
- Copy the script code snippet and paste it into the source code of the iframe you are debugging. It should look something like this:
<iframe> <script src="http://jsconsole.com/remote.js?YOUR-UNIQUE-KEY-HERE"></script> <script> // Your js here </script> </iframe>
Now, when your script outputs to the console or throws exceptions, the output appears on jsconsole.com. You can also execute code from here, which will then run in the iframe on your device.
Two words of caution:
- Take extra care if you are using a hosted service, to ensure you don't accidentally send sensitive or confidential information to a publicly available endpoint.
For additional tips and updates, see the Instant Articles Troubleshooting Guide.