Reputation: 3011
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.
Upvotes: 3
Views: 322
Reputation: 15202
Simple:
trace add execution source enterstep {apply {{cmd op} {puts "+ $cmd"}}}
source yourfile.tcl
Upvotes: 4