1.那些launch.json与task.json的配置啥的强烈建议去看官网的教程,不要到处博客去搜,真的CSDN与中国的大多数博客系统鱼龙混杂,这里贴上微软官方的配置教程
https://code.visualstudio.com/docs/cpp/config-linux
- 我配置的时候出现了一个问题,我在按照微软官方教程走下来的时候,我在进行完编译步骤后想进入调试,可是在执行启动调试步骤后,出现调试窗口一闪而过的问题,网上找了好久的解决办法,都没有用,最后发现还是自己看教程的时候不仔细。官网教程有这样一句话。
By default, the C++ extension won’t add any breakpoints to your source code and the stopAtEntry value is set to false.
Change the stopAtEntry value to true to cause the debugger to stop on the main method when you start debugging.
我们需要修改stopAtEntry的值。