Thanks @mwiedermwieder wrote: ↑Tue Dec 28, 2021 3:17 amThe most recent version of the glx2 script editor supports code folding and custom colorization.
https://github.com/mwieder/glx2ScriptEditor
i was very keen to try this for the code folding in particular. That works very well indeed. It is exactly the feature most of us have wanted in the default code editor and implemented very well.
Lots of smaller features are very nice as well - grouping scripts into 'folders' in the sidebar for example.
The colorisation works nicely too, but it's too unwieldy as there is no theming to allow a variety of colour themes etc. I ended up just sticking with the default, as 'custom colorisation' isn't that usable. For example, i don't like the default background - would prefer it white when not in chalkboard motif, but there seems to be no way to just alter that.
My question is really about debugging - i deliberately call a divide by 0 error to trigger this and although it drops me into glx2, there seems to be no debugging feature? Looking at documentation there is a single line suggesting this is possibly provided by PowerDebug, a $40 plugin - is that really the case? Or am I not using this correctly?
I also noticed an issue with code folding and code block highlighting: There is a nice feature that will highlight a code block for example an if-then-else block. However if code-folded, the highlight remains unchanged, now highlighting lines outside of the if-then-else block which has been folded away.
Small things like this, along with the apparent lack of native debugging (if that's really the case) make it difficult to adopt as a script editor - but please do let me know if i'm not doing this right!