diff --git a/src/debug/org/luaj/debug/j2se/StandardLuaJVM.java b/src/debug/org/luaj/debug/j2se/StandardLuaJVM.java index ea27c20c..fbdbda0e 100644 --- a/src/debug/org/luaj/debug/j2se/StandardLuaJVM.java +++ b/src/debug/org/luaj/debug/j2se/StandardLuaJVM.java @@ -109,7 +109,7 @@ public class StandardLuaJVM { !suspendOnStartStr.equalsIgnoreCase("false")) { throw new ParseException("invalid debug flag: suspendOnStart"); } - this.bSuspendOnStart = Boolean.parseBoolean(suspendOnStartStr); + this.bSuspendOnStart = "true".equals(suspendOnStartStr); System.setProperty(Platform.PROPERTY_LUAJ_DEBUG_SUSPEND_AT_START, suspendOnStartStr); } else { throw new ParseException("Invalid command line argument: " + debugOptions);