Getting an Error in an Python Toolbox I created that works on other projects. However the Traceback doesn't provide a line in my .pyt file belying the toolbox. How am I supposed to debug this?
thanks - Zach
Pro 3.0.2
Solved! Go to Solution.
If you rewrite that list comprehension expression as a standard for loop does it produce a better traceback?
If you rewrite that list comprehension expression as a standard for loop does it produce a better traceback?
Hi @DavidSolari, it appears that line 112 was pointing to a list comprehension, or generally a line in my .pyt. I am just accustomed to a printout of the problematic line. I actually went back and decomposed the code and debugged in the Notebook and found the issue.
That is interesting, and I imagine you are correct that no line was printed because it was within a list comprehension. I will mark yours as the answer.
Thanks!
Zach