debuggingoperaremote-debuggingopera-dragonfly

Trace to Opera Dragonfly


I am using Opera on a Windows PC and developing for a device. I can telnet into the device and manually run the browser which gives me the browser output.

Is it possible to trace messages into both Dragonfly and the Opera console? I can see a window.alert() message show up in the console, but I would also like to trace messages for simpler debugging and status tracking both within Dragonfly on PC and Opera on the device.


Solution

  • function debug(text) {
      ((window.console && console.log) ||
       (window.opera && opera.postError) ||
       window.alert).call(this, text);
    }
    

    I'm not positive this will solve your problems (I don't have much experience with Dragonfly) but it seems that opera.postError is the general API call for console logging on Opera.