You use the variable cyclechan in your proc cycle, but that variable is not listed in the global, or a parameter, or set anywhere.
Did you mean scanchan? Or did you mean cyclechan in the global statement?
Code: Select all
proc logargs args {putlog $args}
trace add execution ::dasbrain::cswhy::onmode {enter enterstep leave leavestep} logargs
trace add execution ::dasbrain::cswhy::onnotice {enter enterstep leave leavestep} logargs
Code: Select all
[code]