Jelajahi Sumber

Allow debug information from dynamically compiled scripts

Zoey76 5 tahun lalu
induk
melakukan
76186e942a

+ 1 - 0
.gitignore

@@ -4,5 +4,6 @@
 .idea/
 target/
 logs/
+log/
 test-output/
 hexid.txt

+ 1 - 1
src/main/java/com/l2jserver/gameserver/scripting/ScriptEngineManager.java

@@ -58,7 +58,7 @@ public final class ScriptEngineManager {
 	};
 	
 	private static final InMemoryJavaCompiler COMPILER = InMemoryJavaCompiler.newInstance() //
-		.useOptions("-classpath", CLASS_PATH) //
+		.useOptions("-classpath", CLASS_PATH, "-g") //
 		.ignoreWarnings();
 	
 	public void executeScriptList(File list) throws Exception {