[sushi] Add RUN_DEBUG environment variable
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] Add RUN_DEBUG environment variable
- Date: Wed, 22 Jul 2015 19:40:05 +0000 (UTC)
commit 5bcd06270b655b285dffc1085e186ee32e583f24
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Jul 22 12:34:54 2015 -0700
Add RUN_DEBUG environment variable
When executed with RUN_DEBUG=1, we will start sushi under gdb.
src/sushi.in | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/sushi.in b/src/sushi.in
index 4d5c896..bbed8e9 100644
--- a/src/sushi.in
+++ b/src/sushi.in
@@ -12,4 +12,9 @@ if test x"$GJS_DEBUG_TOPICS" = x ; then
export GJS_DEBUG_TOPICS="JS ERROR;JS LOG"
fi
- libexecdir@/sushi-start
+DEBUG_COMMAND=""
+if [ "$RUN_DEBUG" != "" ]; then
+ DEBUG_COMMAND="gdb --args"
+fi
+
+exec $DEBUG_COMMAND @libexecdir@/sushi-start
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]