Visual studio code VS代码--意外的输出格式/错误\

Visual studio code VS代码--意外的输出格式/错误\,visual-studio-code,vscode-debugger,Visual Studio Code,Vscode Debugger,我是stackoverflow和VS代码的新手。当我试图调试我的代码时,我收到了错误消息,无法修复它 我上传了错误信息 及; 下面是mylaunch.json: // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information,visit: https://go.micr

我是stackoverflow和VS代码的新手。当我试图调试我的代码时,我收到了错误消息,无法修复它

我上传了错误信息

及; 下面是
mylaunch.json

    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information,visit: https://go.microsoft.com/fwlink/?linkid=830387
{
“版本”:“0.2.0”,
“配置”:[
{
“名称”:“g++.exe-Etkin dosyayıderle ve dosyada hata ayıkla”,
“类型”:“cppdbg”,
“请求”:“启动”,
“程序”:“${fileDirname}\\\${fileBasenameNoExtension}.exe”,
“args”:[],
“stopAtEntry”:false,
“cwd”:“${workspaceFolder}”,
“环境”:[],
“外部控制台”:false,
“MIMode”:“gdb”,
“miDebuggerPath”:“C:\\MinGW\\bin\\gdb.exe”,
“设置命令”:[
{
“描述”:“杜兹甘·亚兹德·梅伊·埃金莱·蒂尔的gdb için düzgün yazdırmayıetkinleştir”,
“文本”:”-启用漂亮打印“,
“忽略失败”:正确
}
],
“预启动任务”:“C/C++:g++.exe生成活动文件”
}
]
}
task.json

    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information,visit: https://go.microsoft.com/fwlink/?linkid=830387
{
“任务”:[
{
“类型”:“cppbuild”,
“标签”:“C/C++:g++.exe生成活动文件”,
“命令”:“C:\\TDM-GCC-64\\bin\\g++.exe”,
“args”:[
“-g”,
“${file}”,
“-o”,
“${fileDirname}\\\${fileBasenameNoExtension}.exe”
],
“选择”:{
“cwd”:“C:\\TDM-GCC-64\\bin”
},
“问题匹配者”:[
“$gcc”
],
“集团”:{
“种类”:“建造”,
“isDefault”:正确
},
“详细信息”:“调试器生成的任务”
}
],
“版本”:“2.0.0”
}
我的main.cpp文件只是打印“Hello”


我安装了MinGW,它的目录是:C:\MinGW我最近遇到了同样的问题。自动生成的
tasks.json
似乎没有正确设置,可执行文件是在根目录中创建的。可以通过将
类型
的“cppbuild”
更改为
的“shell”
来解决此问题

{
“任务”:[
{
“类型”:“外壳”,
...
}
],
“版本”:“2.0.0”
}