Usually if I need a “debug” output in Tcl proc I insert a lot of echo commands, but then I have to remove them (or comment out) when move the code to production.
Then if later I have a problem I have to turn them on again.
If I knew how to get the current level I could program level of debug output depending on the current EO level.
I guess I could use a file or parameter but it seems more logical to use existing mechanism.
Thanks for you time