This is also exact answer for default keeping console process. Tools-Options-Node.js Tools- click "wait for input when process exits normally" in Microsoft Visual Studio 2022.