How can I print a message to the error console, preferably including a variable?
For example, something like:
print(\'x=%d\', x);
The simplest way to do this is:
console.warn("Text to print on console");