mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not show failed debugger start notification if the process died before attach
This commit is contained in:
@@ -1971,12 +1971,16 @@ public abstract class DebugProcessImpl extends UserDataHolderBase implements Deb
|
||||
}
|
||||
}
|
||||
else {
|
||||
ProcessHandler processHandler = getProcessHandler();
|
||||
boolean terminated =
|
||||
processHandler != null && (processHandler.isProcessTerminating() || processHandler.isProcessTerminated());
|
||||
|
||||
fail();
|
||||
DebuggerInvocationUtil.swingInvokeLater(myProject, () -> {
|
||||
// propagate exception only in case we succeeded to obtain execution result,
|
||||
// otherwise if the error is induced by the fact that there is nothing to debug, and there is no need to show
|
||||
// this problem to the user
|
||||
if (myExecutionResult != null || !connectorIsReady.get()) {
|
||||
if ((myExecutionResult != null && !terminated) || !connectorIsReady.get()) {
|
||||
ExecutionUtil.handleExecutionError(myProject, ToolWindowId.DEBUG, sessionName, e);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user