From f991e804e36c08ce422eedc6628192aeccbfc9fc Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 23 Jun 2019 19:58:48 +0100 Subject: Debug when loading modules --- scripts/toy.groovy | 3 +++ 1 file changed, 3 insertions(+) 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); }); }; -- cgit v1.2.3