JS Console simply gives you access to the client-side environment of your pages, letting you evaluate client-side code expressions and run code.
To configure your application to use JS Console, select the main page of your application and follow these steps:
- From the Object Inspector, open the Events tab.
- Double-click the OnShowHeader event.
- On the function for the event, add the following line of code: echo "<script src=\"http://jsconsole.com/remote.js?code\"></script>";. Replace code with a unique code, like 16299E7F-5A88-4EB7-A690-9D688CDE536F.
Your mobile application is now configured to use JS Console. You can deploy your application, and run it on a device (either real or virtual) with access to the internet.
Warning: Undo the changes to your appliaction here when deploying for a public release.
To access the running page from your workstation, open a web browser and go to jsconsole.com. On the top field, enter :listen code, where code is the code you chose above, and hit .