Hi there, I was attempting use pycharm to debug, and a lot of the stuff on the forums didn’t work.
Here is instructions that worked for me:
Get frappe bench setup and your site up and running on port 8000
Open the frappe project from apps/frappe in pycharm
Open the erpnext project from apps/erpnext, and add to existing project.
Go to file Project dependencies, and make each project dpending on each other
Set up a new python interpreter environment, and choose the existing venv that bench is using
Set up a new configuration under run/debug and set up as appropriate (running on port 8001, since 8000 is still being used by bench), using the interpreter you set up previously
Now start up in debug mode
visit your site:8001
and your breakpoints will be hit in either frappe or erpnext.
Caveats I’ve found so far:
cant debug python rq jobs
socketio doesnt work, since its running on port 8000, but it tries looking for it on port 8001.
Feel free to let me know any feedback.