Skip to content

Setting up vscode for debugging poetry #7948

Answered by jpmorris
jpmorris asked this question in Q&A
Discussion options

You must be logged in to vote

Found out how:
In VSCode use the following launch.conf:

 {
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Python: Module",
            "type": "python",
            "request": "launch",
            "module": "poetry",
            "justMyCode": false,
            "cwd": "C:\\Users\\<username>\\python3.8.10\\Lib\\site-packages",
            "args": [ <arguments for the command you wnat to debug>
            ],
        },
    ]
}

Then run main.py as the entry point. It should run your command and you can debug the errors

As far as my issues (for anyone else):

  • if using requests library export REQUESTS_CA_BUNDLE if you're behind a corporate firewall to add you…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jpmorris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant