Somehow we lost the ability to define adapters in the local .vimspector.json, I think when GetConfigurations was added. Put that feature back.
121 lines
2.9 KiB
JSON
121 lines
2.9 KiB
JSON
{
|
|
"$schema": "https://puremourning.github.io/vimspector/schema/vimspector.schema.json",
|
|
"adapters": {
|
|
"test_custom": {
|
|
"command": "This is a test"
|
|
}
|
|
},
|
|
"configurations": {
|
|
"Use custom gadget": {
|
|
"adapter": "test_custom",
|
|
"configuration": {
|
|
"request": "launch"
|
|
}
|
|
},
|
|
// This is a comment.
|
|
"run legacy vscode-python": {
|
|
"adapter": "vscode-python", /* coment goes here too */
|
|
"configuration": {
|
|
"request": "launch",
|
|
"type": "python",
|
|
"cwd": "${workspaceRoot}",
|
|
"program": "${file}",
|
|
"stopOnEntry": true,
|
|
"console": "integratedTerminal"
|
|
},
|
|
"breakpoints": {
|
|
"exception": {
|
|
"raised": "N",
|
|
"uncaught": "",
|
|
"userUnhandled": ""
|
|
}
|
|
}
|
|
},
|
|
"attach": {
|
|
"adapter": "multi-session",
|
|
"configuration": {
|
|
"request": "attach"
|
|
},
|
|
"breakpoints": {
|
|
"exception": {
|
|
"raised": "N",
|
|
"uncaught": "",
|
|
"userUnhandled": ""
|
|
}
|
|
}
|
|
},
|
|
"run": {
|
|
"adapter": "debugpy",
|
|
"configuration": {
|
|
"request": "launch",
|
|
"type": "python",
|
|
"cwd": "${workspaceRoot}",
|
|
"program": "${file}",
|
|
"stopOnEntry": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
"breakpoints": {
|
|
"exception": {
|
|
"raised": "N",
|
|
"uncaught": "",
|
|
"userUnhandled": ""
|
|
}
|
|
}
|
|
},
|
|
"run - default": {
|
|
"adapter": "debugpy",
|
|
"variables": {
|
|
"MAKE_ENV_OUTPUT": {
|
|
"shell": "${workspaceRoot}/make_env.sh"
|
|
}
|
|
},
|
|
"configuration": {
|
|
"request": "launch",
|
|
"type": "python",
|
|
"cwd": "${workspaceRoot}",
|
|
"program": "${program:${file\\}}",
|
|
"stopOnEntry#json": "${StopOnEntry:true}",
|
|
"console": "integratedTerminal",
|
|
"args#json": "${args:[]}",
|
|
"igored#json#s": "string not json",
|
|
"env#json": "${MAKE_ENV_OUTPUT}"
|
|
},
|
|
"breakpoints": {
|
|
"exception": {
|
|
"raised": "N",
|
|
"uncaught": "",
|
|
"userUnhandled": ""
|
|
}
|
|
}
|
|
},
|
|
"run - main.py": {
|
|
"adapter": "debugpy",
|
|
"configuration": {
|
|
"request": "launch",
|
|
"type": "python",
|
|
"cwd": "${workspaceRoot}",
|
|
"program": "${workspaceRoot}/main.py",
|
|
"stopOnEntry": false,
|
|
"console": "integratedTerminal"
|
|
},
|
|
"breakpoints": {
|
|
"exception": {
|
|
"raised": "N",
|
|
"uncaught": "",
|
|
"userUnhandled": ""
|
|
}
|
|
}
|
|
},
|
|
"run - exception question": {
|
|
"adapter": "debugpy",
|
|
"configuration": {
|
|
"request": "launch",
|
|
"type": "python",
|
|
"cwd": "${workspaceRoot}",
|
|
"program": "${file}",
|
|
"stopOnEntry": false,
|
|
"console": "integratedTerminal"
|
|
}
|
|
}
|
|
}
|
|
}
|