Select to view content in your preferred language

Scripting tool does not return line error consitent with the error line in the script

2048
10
02-28-2023 12:28 PM
Labels (1)
JoeLummi
Occasional Contributor

I am porting a scripting tool to Pro v3.  The error messages returned by my scripting tool return a line where the code failed but this line number is not the same as the line number in my Python IDE where I am writing the code.

 

Here is the error message returned from the ArcToolbox scripting tool:

Capture.JPG

 

Here is where the code failed (although I have the code sorted out now).

Capture2.JPG

My question is why is the scripting tool error message not returning the same line as the Python code? How is it possible to debug scripts in Pro if you cannot determine the correct line of code that is failing?

Tags (4)
0 Kudos
10 Replies
DanPatterson
MVP Esteemed Contributor

@ShaunWalbridge you may want to look into this or pass it along


... sort of retired...
0 Kudos