--- 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.
====================