for debug=2 display caller function
for debug=3 display full dump
<script type="text/javascript">
var mkws_config = {
lang: "en",
- debug: 1,
+ debug: 2,
use_service_proxy: true,
switch: true,
sort_default: "relevance",
/* A very simple client that shows a basic usage of the pz2.js
*/
-"use strict"; // HTML5
+// "use strict"; // HTML5
if (!mkws_config)
var mkws_config = {}; // for the guys who forgot to define mkws_config...
if (!console) { /* ARGH!!! */
return;
}
-
+
+ // you need to disable use strict at the top of the file!!!
+ if (mkws_debug >= 3) {
+ console.log(arguments.callee.caller);
+ } else if (mkws_debug >= 2) {
+ console.log(">>> called from function " + arguments.callee.caller.name + ' <<<');
+ }
console.log(string);
}