用VSCode和CMake编写调试C/C++ - 简书
https://www.jianshu.com/p/c3806d2ad1f8CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice. 到这里,梳理一下需要用到的东西。 文本编辑器:Visual Studio Code。
Debug C++ in Visual Studio Code
https://code.visualstudio.com/docs/cpp/cpp-debugThe C/C++ extension for VS Code also has the ability to debug memory dumps. To debug a memory dump, open your launch.json file and add the coreDumpPath (for GDB or LLDB) or dumpPath (for the Visual Studio Windows Debugger) property to the C++ Launch configuration, set its value to be a string containing the path to the memory dump.