Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug tcl flow - like bash -

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.

like image 799
pedr0 Avatar asked Jun 20 '26 11:06

pedr0


1 Answers

Simple:

trace add execution source enterstep {apply {{cmd op} {puts "+ $cmd"}}}
source yourfile.tcl
like image 108
Johannes Kuhn Avatar answered Jun 23 '26 04:06

Johannes Kuhn