js.rst
changeset 1534 61deca7da3f5
parent 1533 38f62ec2f1ed
child 1599 52d4f3d19b46
--- a/js.rst	Mon Dec 23 22:58:49 2013 +0200
+++ b/js.rst	Mon Dec 23 23:03:20 2013 +0200
@@ -85,10 +85,24 @@
 
 Pretty print from JavaScript.
 =============================
+::
+
+  console.debug("%o", obj);
+
+Logging in JS.
+==============
 
 To Web Developer console (Firefox/Chrome)::
 
-   console.debug ("%o", obj);
+  console.log("str");
+  console.info("str is %s", "str");
+  console.warn("this is %o", this);
+  console.error("int: %i, float: %f, string: %s, object: %o", 2, .333, "str", this);
+
+To see stack-trace use::
+
+  console.trace();
+  console.log(new Error().stack); // only FF
 
 XML from JavaScript.
 ====================