在Visual Studio Code中运行COBOL时出现JSON文件问题。

huangapple go评论76阅读模式
英文:

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}"]
    }
  ]
}

huangapple
  • 本文由 发表于 2023年7月7日 04:32:17
  • 转载请务必保留本文链接:https://go.coder-hub.com/76632367.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定