Hi,
we use poetry and I like to use my poetry scripts as entry points for the debugging in vscode. Therefore, we use following vscode launch.json configurations:
{
"configurations": [
{
"name": "poet_####",
"type": "python",
"request": "launch",
"module": "poetry",
"subProcess": true,
"args": [
"run",
"###name###",
],
"console": "integratedTerminal",
"justMyCode": true,
"cwd": "${workspaceFolder}",
"envFile": "",
"env": {},
},
]
}
The issue is that the debugging starts BUT exits early (after some seconds). In the middle of the process, everything stops. This is the case for all our code which is run via poetry.
If we run the python code manually without the poetry run command, but in a poetry shell with python main.py, the debugging works flawlessly.
If I run in a shell manually poetry run ###name### it also works flawlessly.
In principle the debugging with poetry seems to work. It stops at breakpoints and shows error msgs etc. But as mentioned, shortly after that the whole execution stops and I am out of the debugging and the process itself.
Anyone an idea what causes the early exiting?
VSCode: 1.65.2
Poetry (systemwide): 1.1.13
Poetry python:
poetry: 1.1.13
poetry-core: 1.0.8
- [ x] I have searched the issues of this repo and believe that this is not a duplicate.
- [ x] I have searched the documentation and believe that my question is not covered.
Hi,
we use poetry and I like to use my poetry scripts as entry points for the debugging in vscode. Therefore, we use following vscode launch.json configurations:
{ "configurations": [ { "name": "poet_####", "type": "python", "request": "launch", "module": "poetry", "subProcess": true, "args": [ "run", "###name###", ], "console": "integratedTerminal", "justMyCode": true, "cwd": "${workspaceFolder}", "envFile": "", "env": {}, }, ] }The issue is that the debugging starts BUT exits early (after some seconds). In the middle of the process, everything stops. This is the case for all our code which is run via poetry.
If we run the python code manually without the
poetry runcommand, but in a poetry shell withpython main.py, the debugging works flawlessly.If I run in a shell manually poetry run ###name### it also works flawlessly.
In principle the debugging with poetry seems to work. It stops at breakpoints and shows error msgs etc. But as mentioned, shortly after that the whole execution stops and I am out of the debugging and the process itself.
Anyone an idea what causes the early exiting?
VSCode: 1.65.2
Poetry (systemwide): 1.1.13
Poetry python:
poetry: 1.1.13
poetry-core: 1.0.8