So iOS6 is out, horrah. Now, it appears as though Apple have removed the \'Developer Console\' that used to exist in Safari. Great, I hear a lot of people say - it was limit
You can use window.onerror to debug errors without a console. Simply add this code to your HTML document in its own tag before any other Javascript code:
This will do so that whenever there is an error, the error message will be shown in an alert
dialog box, which is visible in iOS Safari. It's important that the above code runs before the error you're trying to debug, and if you're debugging a syntax error, it's also important that it's in a separate tag.