opera.postError()
Description:
Makes a given text string appear in the Error Console. Helpful for debugging.
Parameters:
String: Any string. An array will be converted into a string.
Syntax:
void postError (<DOMString> string)
Example:
// 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));
This article is licensed under a Creative Commons Attribution 3.0 Unported license.
Comments
You must be logged in to write a comment. If you're not a registered member, please sign up.