diff --git a/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/ConfigurationDoneRequestHandler.java b/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/ConfigurationDoneRequestHandler.java index 1c543bce..c841261d 100644 --- a/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/ConfigurationDoneRequestHandler.java +++ b/com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/ConfigurationDoneRequestHandler.java @@ -82,7 +82,7 @@ private void handleDebugEvent(DebugEvent debugEvent, IDebugSession debugSession, } else if (event instanceof VMDeathEvent) { vmHandler.disconnectVirtualMachine(event.virtualMachine()); context.setVmTerminated(); - context.getProtocolServer().sendEvent(new Events.ExitedEvent(0)); + context.getProtocolServer().sendEvent(new Events.ExitedEvent(event.virtualMachine().process().exitValue())); } else if (event instanceof VMDisconnectEvent) { vmHandler.disconnectVirtualMachine(event.virtualMachine()); if (context.isAttached()) {