How can I print a message to the error console, preferably including a variable?
For example, something like:
print(\'x=%d\', x);
Visit https://developer.chrome.com/devtools/docs/console-api for a complete console api reference
console.error(object[Obj,....])\
In this case, object would be your error string