How to use Visual Studio to directly debug Python toolbox by attaching process

314
0
01-03-2024 01:02 PM
Eniac-6
New Contributor III

I am trying to debug my Python Toolboxes in Visual Studio, but nothing shows up in locals. Is there a certain version on VS that will work with ArcGIS Pro? I have followed the steps here: https://pro.arcgis.com/en/pro-app/3.0/arcpy/get-started/debugging-python-code.htm

I am using:

Visual Studio 2022

ArcGIS Pro 3.1.2

Windows 10 

My conda environment, arcgispro-py3_clone, is a direct clone of arcgispro-py3.

Above my code in VS, reads a warning banner: "You're using arcgispro-py3_clone (0.0, 64-bit). Some features might not work as expected as Visual Studio does not officially support this version." There's a more info link, but it doesn't open anything.

I have ArcGIS Pro attached, and my tool open in Pro.

I've been trying to follow along to these two videos:

Building Geoprocessing Tools with Python: Beyond the Basics (youtube.com)

https://www.youtube.com/watch?v=qrp46oVBiEY

Capture.PNG

 

 

 

 

 

0 Kudos
0 Replies