X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=manifold%2Fjs%2Fmanifold.js;h=4508a9eef14be54084511aa031788ddb604e6d39;hb=78d95d4c4be4e47fce2e07f8735ae8a73daf8eb8;hp=34b9fa8c8253b1275a93a4ff6774f9409e2f1c9d;hpb=1b09c4b310511def27e0cdfded6cbc545b10e055;p=unfold.git diff --git a/manifold/js/manifold.js b/manifold/js/manifold.js index 34b9fa8c..4508a9ee 100644 --- a/manifold/js/manifold.js +++ b/manifold/js/manifold.js @@ -7,6 +7,12 @@ function debug_dict (msg, o) { function debug_value (msg, value) { console.log ("debug_value: " + msg + " " + value); } +function debug_query (msg, query) { + if (query === undefined) console.log ("debug_query: " + msg + " -> undefined"); + else if (query == null) console.log ("debug_query: " + msg + " -> null"); + else if ('query_uuid' in query) console.log ("debug_query: " + msg + " query_uuid= " + query.query_uuid); + else console.log ("debug_query: " + msg + " query= " + query); +} /* ------------------------------------------------------------ */ // this namespace holds functions for globally managing query objects