Restarting the kernel means loosing the debugging session, but there's no messages from the kernel and VS Code can't tell that the session is over. Disabling restart while in a debug session fixes this.