git://source.jalview.org
/
jalviewjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
JAL-1807 includes ?j2sdebug flag and DebugJS._(msg)
[jalviewjs.git]
/
site
/
j2s
/
JU
/
DebugJS.js
diff --git a/site/j2s/JU/DebugJS.js
b/site/j2s/JU/DebugJS.js
new file mode 100644
(file)
index 0000000..
d795843
--- /dev/null
+++ b/
site/j2s/JU/DebugJS.js
@@ -0,0
+1,9
@@
+Clazz.declarePackage ("JU");
\r
+c$ = Clazz.declareType (JU, "DebugJS");
\r
+c$._ = Clazz.defineMethod (c$, "_",
\r
+function (msg) {
\r
+{
\r
+if (Clazz._debugging) {
\r
+debugger;
\r
+}
\r
+}}, "~S");
\r