I'm building a CLI in python using poetry and have used vimspector separately in the past for python debugging.
When I test a normal python file, I can set up my vimspector.json like
{
"configurations": {
"run": {
"adapter": "debugpy",
"configuration": {
"request": "launch",
"protocol": "auto",
"stopOnEntry": true,
"console": "integratedTerminal",
"program": "${workspaceRoot}/gzrparse.py",
"cwd": "${workspaceRoot}"
}
},
"parse": {
"adapter": "debugpy",
"configuration": {
"request": "launch",
"protocol": "auto",
"stopOnEntry": true,
"console": "integratedTerminal",
"program": "${workspaceRoot}/test/parse.py",
"cwd": "${workspaceRoot}"
}
}
}
}
Which works fine for those purposes, I would love to debug my CLI with vimspector as well, but i'm struggling to find the correct configurations in my .json file. When on the CLI I can poetry run packagename
which works fine, so i'm trying to get vimspector to replicate that command.
Does anyone know if that's possible? Or how to do it? I've been trying to adapt from this answer but I'm a little out of my depth on what i'm doing.