pedr0
pedr0

Reputation: 3011

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.

Upvotes: 3

Views: 318

Answers (1)

Johannes Kuhn
Johannes Kuhn

Reputation: 15163

Simple:

trace add execution source enterstep {apply {{cmd op} {puts "+ $cmd"}}}
source yourfile.tcl

Upvotes: 4

Related Questions