Skip to content

Commit 34f6d2a

Browse files
committed
Provide graceful shutdown on debug stop action
1 parent 31dd8ee commit 34f6d2a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/DisconnectRequestHandler.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public void destroyDebugSession(Command command, Arguments arguments, Response r
2626
IDebugSession debugSession = context.getDebugSession();
2727
if (debugSession != null) {
2828
if (disconnectArguments.terminateDebuggee && !context.isAttached()) {
29+
debugSession.detach();
2930
debugSession.terminate();
3031
} else {
3132
debugSession.detach();

0 commit comments

Comments
 (0)