Replies: 3 comments 7 replies
-
I've got some similar scripts in this project's package.json file. The one I use most is Unfortunately, I haven't found a way to properly debug plugins running in Live's environment, other than adding lots of log statements and hoping that helps 😅 |
Beta Was this translation helpful? Give feedback.
-
Ah very nice thank you, I think I overlooked these scripts when creating my PR, so I will amend. With logging, this is the approach I take, but it is a bit frustrating. It would be nice if we could use breakpoints and be able to step through the code. Some way of mocking the Ableton c_instance would make writing tests and debugging much simpler. I'm sure Ableton must have some internal tools they use for this process, I'm wondering if we could politely ask them to release some of their tools to us third party developers. |
Beta Was this translation helpful? Give feedback.
-
Starting this discussion as it's a problem I've consistently come up against, does any one here have any helpful processes for writing tests and debugging the python scripts.
The whole process of having to restart Live and copy the scripts over is frustrating, and not being able to write any kind of testing because of the dependence on the c_instance of Live is also frustrating. Also not being able to use breakpoints and step through the code makes narrowing down some problems more difficult. Has any one made any headway with trying to mock the Live c_instance so that offline testing could be achieved.
I myself have written two scripts which help me, one for copying remote scripts into the correct location, the other for continuously reading log.txt file
read live logs
copy remote script
Beta Was this translation helpful? Give feedback.
All reactions