numaru / vscode-ceedling-test-adapter

Ceedling Test Adapter for the VS Code Test Explorer
MIT License
37 stars 13 forks source link

Configuration 'true' is missing in 'launch.json'. #92

Closed LinusLing0910 closed 2 years ago

LinusLing0910 commented 2 years ago

I installed the ceedling test exploer, it is ok for run the test case , but pops up "configuration true is missing in launch.json",

below is the lauch.json

{
    "version": "0.2.0",
    "configurations": [
      {
        "name": "Ceedling Test Explorer Debug",
        "type": "cppdbg",
        "request": "launch",
        "program": "${fileDirname}/build/test/out/${command:ceedlingExplorer.debugTestExecutable}",
        "args": [],
        "stopAtEntry": false,
        "cwd": "${fileDirname}",
        "environment": [],
        "externalConsole": false,
        "MIMode": "gdb",
        "miDebuggerPath": "D:\\Program Files\\mingw64\\bin\\gdb.exe",
        "setupCommands": [
          {
            "description": "Enable pretty-printing for gdb",
            "text": "-enable-pretty-printing",
            "ignoreFailures": true
          }
        ],
        "preLaunchTask": "C/C++: g++.exe build active file"
      }
    ]
  }

below is the setting.json

{
    "files.associations": {
        "plc_core_def.h": "c"
    },
    "ceedlingExplorer.debugConfiguration": "true",
    "ceedlingExplorer.problemMatching": {
        "mode": "gcc"
    }
}
LinusLing0910 commented 2 years ago

resolved, it caused by the incorrrect configuration, the "ceedlingExplorer.debugConfiguration" shoud configure with "Ceedling Test Explorer Debug"