According to these links, one can debug a Python script using Visual Studio in ArcGIS Pro. Debug Python code—ArcPy Get Started | ArcGIS Desktop
ArcGIS Pro and Python - YouTube
I am using ArcGIS pro version 2.5.1 and Visual studio 2019 (16.6.1) . My steps
The tool fails in ArcGIS Pro because it has errors but I am not re routed to Visual Studio to see the error line as I expected. I then removed the errors in the code and left only the breakpoints but I still wasn't able to hit the breakpoints. Again, the tool completed without re-routing me back to visual studio. Has anyone been able to successfully debug Python tools using Visual Studio Pro 2019 in ArcGIS Pro 2.5.1?
@Dan Patterson
Thanks for pointing it out. I am still using more recent versions of both visual studio pro 2019 as well as ArcGIS Pro 2.5.1
Manish Shrivastav
Debug Python code
Microsoft Visual Studio 2017 can be used to debug ArcGIS Pro 2.1 and later. Earlier versions of either of these applications will not work.
Didn't notice that on first look. You will have to wait for someone else... I am a Spyder user.
Yes, Dan. I did exactly as explained here https://pro.arcgis.com/en/pro-app/arcpy/get-started/debugging-python-code.htm but without any success.
Did you follow the instructions in Debug Python code—ArcPy Get Started | Documentation ?
There is no mention of supported versions however.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.