学习OOP的过程中发现VScode没办法调试C++,会出现“launch:program'xxx' does not exist”的问题:

解决方法:
打开.vscode中task.json文件,在args参数后加上
"-lstdc++"
重新调试即可,不需要修改launch.json文件。
在学习OOP时,VScode调试C++会出现‘launch:program'xxx' does not exist’问题。解决办法是打开.vscode中task.json文件,在args参数后添加内容,重新调试,无需修改launch.json文件。
学习OOP的过程中发现VScode没办法调试C++,会出现“launch:program'xxx' does not exist”的问题:

解决方法:
打开.vscode中task.json文件,在args参数后加上
"-lstdc++"
重新调试即可,不需要修改launch.json文件。