浏览代码

Allow debug information from dynamically compiled scripts

Zoey76 5 年之前
父节点
当前提交
76186e942a
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 0
      .gitignore
  2. 1 1
      src/main/java/com/l2jserver/gameserver/scripting/ScriptEngineManager.java

+ 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 {