From f430d9c4ed97c4f1fa3a8f9d30fcc8a5254d1184 Mon Sep 17 00:00:00 2001 From: phasefx Date: Thu, 29 Apr 2010 18:45:37 +0000 Subject: [PATCH] debugging aid 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 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/error.js b/Open-ILS/xul/staff_client/chrome/content/util/error.js index adbab3676..50ba3a920 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/error.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/error.js @@ -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, -- 2.11.0