Debug: Confirm on Exit Ever accidentally close a window while debugging and lose all your context? Try enabling Debug: Confirm on exit. It will make VS Code ask for confirmation before closing any windows that are actively debugging.