Cannot use Visual Studio 2015 to debug python script

2123
0
04-05-2016 10:58 AM
RuoyuZhang
New Contributor

Hi all,

I'm trying to use visual studio 2015 as my debugger for ArcGIS. However, I cannot even initiate Visual Studio to debug scripts. Here are my settings:

I've tried many scripts but I keep getting the error message like this:

ERROR 000714: Error in script FeatureType.

Error in executing: cmd.exe /C E:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe C:\Users\Ruoyu\DOCUME~1\VISUAL~1\Projects\CONDIT~1\CONDIT~1.SLN

Failed to execute (FeatureType).

My script is:

2.png

1. Set debugger

1.png

2. Copy my script (.py file) to visual studio project folder and set this file as my startup file.

3. Add this script to toolbox, and set the script file to the .sln file in my project folder.

3.png

4. Right click this script in toolbox and debug, but get error message:

4.png

I'm confused why this keeps happening and really hope I can get some help from you guys.

Thanks

0 Kudos
0 Replies