Adding ability to run JDVUE with debugger.
Change-Id: I2d581888c51d8169401cb99196c812890a4da247
diff --git a/tools/dev/bin/jdvue b/tools/dev/bin/jdvue
index db3ec5c..9a5ec45 100755
--- a/tools/dev/bin/jdvue
+++ b/tools/dev/bin/jdvue
@@ -27,5 +27,8 @@
| xargs grep -E "^[ \t]*import .*;.*|^[ \t]*package .*;.*" \
| tr -d '\r' > $name.db
+DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,address=5005,server=y,suspend=y"
+
# Now run the Java Dependency Viewer jar on the catalog
-java -jar ${JAR} $name && rm $name.db && open $name.html
+[ -z "$jdvueDebug" ] && DEBUG_OPTS=""
+java $DEBUG_OPTS -jar ${JAR} $name && rm $name.db && open $name.html