diff --git a/app/src/processing/app/Base.java b/app/src/processing/app/Base.java index 06e6458fc..2551a54d6 100644 --- a/app/src/processing/app/Base.java +++ b/app/src/processing/app/Base.java @@ -65,7 +65,9 @@ public class Base { * if an empty file named 'debug' is found in the settings folder. * See implementation in createAndShowGUI(). */ - static public boolean DEBUG = System.getenv().containsKey("DEBUG"); + + static public boolean DEBUG = Boolean.parseBoolean(System.getenv().getOrDefault("DEBUG", "false")); + /** True if running via Commander. */ static private boolean commandLine;