debugging aid
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 Apr 2010 18:45:37 +0000 (18:45 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 29 Apr 2010 18:45:37 +0000 (18:45 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16348 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/error.js

index adbab36..50ba3a9 100644 (file)
@@ -51,6 +51,14 @@ util.error.prototype = {
             + e + '\n-----------------------------------------\n' );
     },
 
+    'obj_dump' : function(s,dobj) {
+        var o = 'typeof ' + dobj + ' = ' + typeof dobj + '\n';
+        for (var i in dobj) {
+            o += i + '\t' + typeof dobj[i] + '\n';
+        }
+        this.sdump(s,o);
+    },
+
     'sdump_levels' : {
 
         'D_NONE' : false,