I'm working with XTemplates and they are proving hard to debug, specially with the conditional operators etc. To give an example, I was trying something with the for construct and I kept getting non-helpful exceptions or in some cases it kept failing silently (nothing got printed). I'm sure the issue was with my code and I later worked around it with the switch construct.
What is the best way to debug XTemplates? Can I see the generated code to help get some hints about where I may be going wrong? Will something like Illuminations help?