summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorportix <none@none>2012-11-03 12:27:47 +0100
committerportix <none@none>2012-11-03 12:27:47 +0100
commitf105566dcba5a57daeed7b5e6a3f8845a8ec175f (patch)
treefa0cb4fd4479b91ed9f58680d39bfaee2e195c72 /src
parentaca4f87e0892e1b5b8bdc3a2d49118b9b1c36484 (diff)
downloaddwb-f105566dcba5a57daeed7b5e6a3f8845a8ec175f.zip
New debug function
Diffstat (limited to 'src')
-rw-r--r--src/scripts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts.c b/src/scripts.c
index 120b1f9c..5db50b69 100644
--- a/src/scripts.c
+++ b/src/scripts.c
@@ -2023,7 +2023,7 @@ void
scripts_init_script(const char *path, const char *script) {
if (m_global_context == NULL)
create_global_object();
- char *debug = g_strdup_printf("try { %s } catch(e) { io.debug(\"In file %s\", e); }", script, path);
+ char *debug = g_strdup_printf("\ntry{/*<dwb*/%s/*dwb>*/}catch(e) { io.debug({message : \"In file %s\", error : e}); }", script, path);
JSObjectRef function = js_make_function(m_global_context, debug);
if (function != NULL) {
m_script_list = g_slist_prepend(m_script_list, function);