[sushi] debug: set GJS_DEBUG_OUTPUT and GJS_DEBUG_TOPICS at startup



commit be3581d3a04ae580f7cf3fb54d56c54a386f9c79
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Feb 29 09:07:16 2012 -0500

    debug: set GJS_DEBUG_OUTPUT and GJS_DEBUG_TOPICS at startup
    
    So we're able to see debug output when launched from a terminal.

 src/sushi.in |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/sushi.in b/src/sushi.in
index c22fe98..1138f54 100644
--- a/src/sushi.in
+++ b/src/sushi.in
@@ -12,4 +12,12 @@ else
     export GI_TYPELIB_PATH= libdir@/girepository-1.0:$GI_TYPELIB_PATH
 fi
 
+if test x"$GJS_DEBUG_OUTPUT" = x ; then
+    export GJS_DEBUG_OUTPUT=stderr
+fi
+
+if test x"$GJS_DEBUG_TOPICS" = x ; then
+    export GJS_DEBUG_TOPICS="JS ERROR;JS LOG"
+fi
+
 @libexecdir@/sushi-start



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]