In the beginning, I wrote a little XQuery script that was designed to do a small task and only that. Now it came out that this XQuery script is anything but complete, and I have to fix it. The problem is, my XQuery evolved into a program, and XQuery is a Pain to debug. Something that I would need would be:
Print something to the command line to check whether the program has the correct nodes at that time.
A debugging tool that shows me the stored variables