Skip to content

Commit

Permalink
Propagate the exit code of debugee to exit event
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 authored May 19, 2024
1 parent 83403a4 commit cf734f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit cf734f6

Please sign in to comment.