Make a compromise, perhaps can approximately achieve. create settings.json in .vscode and type like this:
"cmake.debugConfig": { "externalConsole": true }
Then use "debug" instead of "launch".