How to setup the ERPNEXT source code into VSCode?

Hi,

I am totally new to ERPNext debugging and would like to know how can I setup the ERPNEXT source code into VSCode?

Does the source code needs to be done on the local server or remote server?

Please help.

Thanks!

You can connect ERPNext server in the VScode easily. You need to connect the ERPNext server via SSH in the VScode. ERPNext server can be local or remote.

Thanks for your reply, can you tell me how to setup and connect with the erpnext server locally?

Hi,

You can follow the guide on this URL - How to connect ERPNext VM to VS Code

1 Like

Thankyou so much, I was able to connect ERPNext’s source code in the VSCode. I am trying to debug trends.py file but it gives me an error. Can you please let me know what am I doing wrong here?

Hi,

Please check the environment selected in the VScode. You can click on the environment marked in red circle and select correct enviornment.

The correct environment is ~/frappe-bench/env/bin/python3.10

1 Like