This causes problems on windows, and is wasteful anyway. The subprocess will pick up the environment from its parent.
138 lines
3.2 KiB
JSON
138 lines
3.2 KiB
JSON
{
|
|
"$schema": "https://puremourning.github.io/vimspector/schema/vimspector.schema.json",
|
|
"adapters": {
|
|
"run_with_debugpy": {
|
|
"command": [ "${workspaceRoot}/run_with_debugpy" ],
|
|
"port": 9876,
|
|
"env": {
|
|
"DEBUG_PORT": "9876"
|
|
}
|
|
}
|
|
},
|
|
"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": ""
|
|
}
|
|
}
|
|
},
|
|
"attach-run": {
|
|
"adapter": "run_with_debugpy",
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|