I'd like to throw out a couple of ideas for tooling enhancements and see what the community thinks. When I get a chance, I'll RFE them.
Second, how about some conditional generation? I'd love to be able to flip a generation-time switch and add or remove code (especially logging). A simple IF_DEFINED would be enough for me, but I'd love to hear what others think.
Agreed. I just spent several days tracking down a timing issue and only did it by basically putting my own logging on every function and my own JS stack trace. Both are very clunky and the stack in particular is fragile, and both will have to be removed for deployment. And since I don't want to lose the code, what I do is go in and comment out every line. Not bad for a couple of modules. Not fun for a large number.
I am tempted (TEMPTED, mind you) to write a tool that will spin through code and selectively comment or uncomment code (probably based on the previous line of code having a specially formatted comment).
But conditional code perhaps based on definitions set in the deployment descriptor (and alternately triggered by source-code annotations) would be most awesome.