BTW you can have the APM watch .xql files just like .tcl library files.
We need a "debug mode" that watches all .tcl library and .xql files, though ...
Petru ... if you intend to share your code with others it would be nice to generate .xql files first anyway (you can use the query extractor). Even if you don't intent to port your work across db's, if you share your code, it is likely that others will.
Then again you may be working on something where the code won't be available or is so tailored to a particular site or customer's needs that sharing it makes no sense ...