Capturing all JavaScript errors / exceptions in Wii / Opera 9

I am updating the site I created for the Nintendo Wii and am looking for a good way to debug the application. The Wii browser (Opera version 9.3) does not have any JavaScript console. I was going to use one of the various console solutions for remote debugging (e.g. jsconsole.com ), but none of them seem to work. I suspect that the reason for this is some unsupported functionality, but I cannot figure out that this is without a console or some kind of error output.

Things I tried:

  • window.onerror ( Not supported until Opera 11.6 )
  • Overriding the Error.prototype.toString method (works on desktops, not Wii)
  • Code that looks like a wrap script in try/catch blocks (Exceptions are not thrown for reference errors, and what not. try / catch works, but only for the exceptions that I throw.)
  • <body onerror="alert('ERROR!!!')" />
  • PhoneGap / Weinre Remote Debugger

Are there any other suggestions for error detection and unhandled exceptions for the entire page?

+8
javascript opera javascript-events
source share
2 answers

this link offered a look at firebug lite . I do not know how it will cost in the wii browser, since I do not own the device.

It is a pity that the engine is too old to support demacholphs.

+1
source share

You can always program debugging code, for example:

 try{ yourFunction(); }catch(e){ alert('yourFunction failed!'); } 
+1
source share

All Articles