by therealmarv · 9y ago · 0 comments
But the best IDE experience (beside PyCharm) is really using VSCode + the most popular Python extension https://github.com/DonJayamanne/pythonVSCode
This setup is a total replacement for PyCharm for me. Code Refactoring, code definition jump, IntelliSense suggestions and help, linting, virtualenv support, code formatting etc. etc.
And last but not least VSCode and this extension are both free, open source... unlike Sublime and PyCharm.
Would love to hear if there's a setting I was missing as I'd like all the other features in VSC.
For those interested:
* expose the right port (if remote debugging)
* install ptvsd into the virtualenv
* ptvsd.enable_attach(..) # in manage.py
* ptvsd.wait_for_attach() # in manage.py
* run the debug server in single threaded mode
* run the debug server with noreload
PyCharm debugging is really top notch, but I don't like the editing experience nearly as much as in sublime or vscode. The keybindings and shortcuts feel so much better in vscode that I'd rather use ipdb in a terminal when I need to debug.