英文:
running cobol in visual studio code problem with json file
问题
I'm trying to compile cobol code in vs studio code, but got problem with the json file, see:
https://dickens.co.in/run-cobol-vscode-msys2-windows
below is the json file:
The problem is the row with - "cobcargs": ,
how to fix this?
{
"version": "0.2.0",
"configurations":
[
{
"name": "COBOL debugger",
"type": "gdb",
"request": "launch",
"cobcargs": ,
"group": ["${file}"]
}
]
}
英文:
I'm trying to compile cobol code in vs studio code, but got problem with the json file, see:
https://dickens.co.in/run-cobol-vscode-msys2-windows
below is the json file:
The problem is the row with - "cobcargs": ,
how to fix this?
{
"version": "0.2.0",
"configurations":
[
{
"name": "COBOL debugger",
"type": "gdb",
"request": "launch",
"cobcargs": ,
"group": ["${file}"]
}
]
}
答案1
得分: 2
你的JSON文件问题在于"cobcargs"的值为空。
"cobcargs"字段用于传递编译器的参数。你应该指定必要的编译器参数。
这里是一个带有参数的示例:
{
"version": "0.2.0",
"configurations": [
{
"name": "COBOL调试器",
"type": "gdb",
"request": "launch",
"cobcargs": ["-free"], // 在这里指定编译器参数
"group": ["${file}"]
}
]
}
英文:
The issue with your JSON file is that the "cobcargs" value is empty
The "cobcargs" field is used to pass arguments to the compiler. You should specify the necessary compiler arguments
here's an example with arguments
{
"version": "0.2.0",
"configurations": [
{
"name": "COBOL debugger",
"type": "gdb",
"request": "launch",
"cobcargs": ["-free"], // Specify the compiler arguments here
"group": ["${file}"]
}
]
}
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论