diff --git a/tools/core/src/main/java/org/teavm/tooling/daemon/BuildDaemon.java b/tools/core/src/main/java/org/teavm/tooling/daemon/BuildDaemon.java index 5d73c2711..418673c46 100644 --- a/tools/core/src/main/java/org/teavm/tooling/daemon/BuildDaemon.java +++ b/tools/core/src/main/java/org/teavm/tooling/daemon/BuildDaemon.java @@ -285,6 +285,7 @@ public class BuildDaemon extends UnicastRemoteObject implements RemoteBuildServi if (debugPort != 0) { arguments.add("-agentlib:jdwp=transport=dt_socket,quiet=y,server=y,address=" + debugPort + ",suspend=y"); } + arguments.add("-XX:+HeapDumpOnOutOfMemoryError"); arguments.add(BuildDaemon.class.getName());