mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Default DEBUG env value to false, or read actual value instead of only checking for existence
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user