diff --git a/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java b/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java index 17185734f..a1b851f35 100644 --- a/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java +++ b/org.eclipse.lsp4e.debug/src/org/eclipse/lsp4e/debug/console/DSPProcess.java @@ -107,7 +107,7 @@ public String getAttribute(String key) { @Override public int getExitValue() throws DebugException { - if (handle.isPresent() && !handle.get().isAlive()) { + if (handle.isPresent() && handle.get().isAlive()) { throw new DebugException(Status.error(handle.get().pid() + " is still running")); } return 0;