Setup VSCode with ArcGIS Pro 2.8.7 for Python Development

507
3
03-12-2023 01:29 PM
Sunnywaygis
Regular Contributor

Hi There, I am trying to configure ArcGIS Pro 2.8.7/VSCode for Python scripting using cloned environment. I wanted to check with community members to see if there are any recommended steps for setting this development environment correctly.

Appreciate your feedback. 

Thanks 

0 Kudos
3 Replies
by Anonymous User
Not applicable

Nothing special, just point to the python environment that you want to use.

C:\Users\you\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\python.exe  (or where ever your cloned env is)

0 Kudos
Sunnywaygis
Regular Contributor

 

 

Thanks JeffK, I did point to the cloned path and it works.

While debugging I get this error, not sure what is causing this..

Sunnywaygis_1-1678815043180.png

 

 

0 Kudos
by Anonymous User
Not applicable

Nice, and you'll have to create a debugging file for debugging.  This article has a good step by step that you can follow to create one: debug-python-in-vscode   Just the part for creating the launch.json file.

0 Kudos