Originally Posted by Vexorian
Barade: it is a bug with the stub keyword confusing jasshelper in the onDestroy stuff will fix.
Everyone: After reading Barade's script I decided I should finally fix the bug that allows debug to sometimes work when used outside functions/methods (which is not intended).
Glad to hear but why shouldn't people be able to use debug outside functions/methods? In some cases it's really useful to define "debug globals/functions/libraries" etc.
And what's exactly the problem with it since you only have to remove all debug lines/keywords before checking the syntax.