I just wondering if there is something like set -x as it is present in Bash forTCL which allows me to follow the flow of my script and then help me to debug it.
Simple:
trace add execution source enterstep {apply {{cmd op} {puts "+ $cmd"}}}
source yourfile.tcl
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With