![]() ![]() In this case, I opened settings.py and set a breakpoint on line 23. Answers related to vs code debug python module python debugger python debugging debugger online for python debugging python select python interpreter. Open a file and set a breakpoint by clicking in the left “gutter” to the left of the line number. the path cd /Users/jyee/Library/Caches/pypoetry/virtualenvs/django-mozilla-aI61n14v-p圓.10 $ echo $PWD/bin/python /Users/jyee/Library/Caches/pypoetry/virtualenvs/django-mozilla-aI61n14v-p圓.10/bin/python # □□ this is what you paste into VS Code 2/3 Set a breakpoint ![]() ![]() The path must be to a python executable, so if the below is the output from poetry env info, the correct path to paste in would be /Users/jyee/Library/Caches/pypoetry/virtualenvs/django-mozilla-aI61n14v-p圓.10/bin/python $ poetry env info Virtualenv Python: 3.10.2 Implementation: CPython Path: /Users/jyee/Library/Caches/pypoetry/virtualenvs/django-mozilla-aI61n14v-p圓.10 # this is the path to the virtualenv Valid: True System Platform: darwin OS: posix Python: /Users/jyee/.pyenv/versions/3.10.2 $ ls /Users/jyee/Library/Caches/pypoetry/virtualenvs/django-mozilla-aI61n14v-p圓.10 # copied from the Path above bin lib pyvenv.cfg $ cd !$ # shortcut to cd to the last argument, i.e. If the right path doesn’t show up automatically, enter the interpreter path to the python you want. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |