错误提示:
“System.InvalidOperationException”类型的未经处理的异常在 System.Console.dll 中发生 : ‘Cannot read keys when either application does not have a console or when console input has been redirected. Try Console.Read.’
解决方法
在launch.json文件中,将键值对"console": "internalConsole"改成"console": "integratedTerminal"即可运行成功。
来源:https://blog.csdn.net/m0_45338067/article/details/115006674