Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ private void destroyResource(IDebugAdapterContext context) {
}

private boolean shouldDestroyLaunchFiles(IDebugAdapterContext context) {
if (context.isAttached()) {
return false; // the debugger is not an owner of the process, so the cleanup can be ignored.
}

// Delete the temporary launch files must happen after the debuggee process is fully exited,
// otherwise it throws error saying the file is being used by other process.
// In Debug mode, the debugger is able to receive VM terminate event. It's sensible to do cleanup.
Expand Down