网站页面确认书,学会服务站建站方案,青岛做教育的网站建设,是网站建设需要安装的
VS Code
LLVM
VS Code 需要安装的插件#xff1a;
C/C#xff08;用来配置 c_cpp_properties.json#xff09;
CodeLLDB#xff08;如果你要用 lldb 调试#xff0c;那么这个插件就需要安装#xff0c;用来连接到 lldb 调试器#xff09;
流程
我们都…需要安装的
VS Code
LLVM
VS Code 需要安装的插件
C/C用来配置 c_cpp_properties.json
CodeLLDB如果你要用 lldb 调试那么这个插件就需要安装用来连接到 lldb 调试器
流程
我们都知道配置编译器要设置三个 jsontask, launch, c_cpp_properties.json
task.json 直接通过 terminal - configure default build task - C/C: clang.exe build active file 设置
launch.json 不再是通过 C/C: clang.exe build and debug active file 设置这样得到的是使用 cppdbg 调试的我试了调试会失败只能使用 cppvsdbg 或 lldb 调试
要使用 cppvsdbg 的话launch.json 如下
{// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.// Pointez pour afficher la description des attributs existants.// Pour plus dinformations, visitez : https://go.microsoft.com/fwlink/?linkid830387version: 0.2.0,configurations: [{name: (Windows) Launch,type: cppvsdbg,request: launch,program: ${fileDirname}\\${fileBasenameNoExtension}.exe,args: [],stopAtEntry: false,cwd: ${workspaceFolder},environment: [],console:newExternalWindow,}]
}其实也就是把 type 改了
如果要用 lldb 也就是把 type 改一下然后要装 CodeLLDB 这个插件。只是有些选项不一样所以不能用了
{// Utilisez IntelliSense pour en savoir plus sur les attributs possibles.// Pointez pour afficher la description des attributs existants.// Pour plus dinformations, visitez : https://go.microsoft.com/fwlink/?linkid830387version: 0.2.0,configurations: [{type: lldb,request: launch,name: Launch,program: ${fileDirname}\\${fileBasenameNoExtension}.exe,args: [],cwd: ${workspaceFolder},console: integratedTerminal}]
}c_cpp_properties.json 直接在 C/C 插件的设置中选择 clang 就好了