diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-23 19:58:48 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-06-23 21:18:22 +0100 |
commit | f991e804e36c08ce422eedc6628192aeccbfc9fc (patch) | |
tree | 45576cf7394f7797434f623d80e10acdf880b97e /scripts/toy.groovy | |
parent | Move getSpoon (diff) | |
download | toy-f991e804e36c08ce422eedc6628192aeccbfc9fc.zip |
Debug when loading modules
Diffstat (limited to 'scripts/toy.groovy')
-rw-r--r-- | scripts/toy.groovy | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/toy.groovy b/scripts/toy.groovy index 597433e..89344ef 100644 --- a/scripts/toy.groovy +++ b/scripts/toy.groovy @@ -62,6 +62,9 @@ return new Object() { new File("$DATAFOLDER/scripts/toy") .listFiles() .each({s -> + if (stateIs("DEBUG")) { + show("Leading $s..."); + } Eval.me(s.text)(toy); }); }; |