This documentation relates to Opera's now deprecated .oex Extension API framework for Opera versions <= 12.15 and also provided by our OEX2NEX shim library.
For the latest Opera Extensions API documentation for Opera versions > 12.15 please consult the latest Opera Extensions API documentation online.
Makes a given text string appear in the Error Console. Helpful for debugging.
String
: Any string. An array will be converted into a string.void postError (<DOMString> string)
// Print a simple string to the error console
// Outputs: Hello, world!
opera.postError('Hello, world!');
// Print an object to the error console
// Outputs: {"banana":"yellow","strawberry":"red"}
var obj = {
'banana' : 'yellow',
'strawberry' : 'red'
};
opera.postError(JSON.stringify(obj));