A useful means of testing and debugging SDL scripts is to use the sdl standalone command. This command, which is found in the same location as the mcsysinfo, is an easy means of running and debugging one or many SDL scripts.
If you want to run a single SDL script, you simple run:
sdl file.sdl
If you want to enable debugging output add "-d" options:
sdl -d file.sdl
Each time "-d" is specified the amount of debugging output increases:
sdl -d -d file.sdl