It certainly does not fix the problem (VS 17.11.4).
I resorted to calling OpenProcesses and killing VsDebugConsole. That fixed the problem.
It is part of a gross problem with windows-11, namely start does not work and cmd.exe leaves zombie copies of itself under all sorts of circumstances.
Is there something wrong with forward compatibility ? However stupid cmd.exe is we have built systems around its known behavior. Changing such a basic tool is unacceptable.