Skip to content

Running a python program in debug mode #90

Answered by monim67
ghost asked this question in Q&A
Discussion options

You must be logged in to vote

Today I tested the same thing on Python 3.10 where it works just fine, but it doesn't work in 3.9. Is this a python related issue?

I was mistaken, it is not dependent on python version, rather depends on poethepoet version. The debugging only works in v0.16.1, doesn't work on the earlier or later version (v0.16.2). I wonder why it only works only on that version. Any idea?

Finally figured it out, if poethepoet executes the command the debugger works, if it executes the command with poetry run prefix the debugger doesn't work (don't know why). VSCode debugger activates poetry virtual environment by running the virtualenv activate script, so POETRY_ACTIVE environment variable is not set, so…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@monim67
Comment options

Comment options

You must be logged in to vote
1 reply
@nat-n
Comment options

Answer selected by nat-n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants