Buddy Hy wrote: ↑
Fri Sep 20, 2019 11:07 pm
I get an error, but can't seem to set a break point so I and step through the code to inspect variables and objects.
Is there a separate workbench for this? Or is it all guess work?
See this thread: Python workbenches debugging
There is no difference between a workbench and a macro, it's the same thing essentially, it's Python code.
You should develop your code in such a way that is easy to test, using small functions and classes, so that it is obvious where the errors are, and you don't have to inspect every single variable and so on.
For example, I dislike the way many macros are programmed because they use a lot of global variables. Creating classes and modifying the attributes of a class instance would be much better than using a hundred global variables.