debugging - Tcl/Tk - can't read "UserArray": variable is array -



debugging - Tcl/Tk - can't read "UserArray": variable is array -

i using activestate's tcldevkit debugger through code @ 1 point in execution of programme next error:

can't read "userarray": variable array while executing "set userarray" ("uplevel" body line 1) invoked within "dbgnub_uplevelcmd dbgnub_uplevelcmd $args" invoked within "uplevel 1 [list set $name]" (procedure "dbgnub_tracevar" line 53) invoked within "dbgnub_tracevar 1 array userarray time1_satotrs1,2 w" (write trace on "userarray(time1_satotrs1,2)") invoked within "set userarray($item,$window) $profile_array($item)"

this error utterly baffles me because understand tcl/tk, doing valid , legal. code goes:

foreach item [array names profile_array] { set userarray($item,$window) $profile_array($item) }

in tcl 1 allowed read , write index in array, don't think there should error here... missing detail?

in code, @ line:

uplevel 1 [list set $name]

i guess in case, $name == "userarray". above statement executed @ previous stack frame as:

set userlevel

which not create sense, userlevel array--that's error message trying tell you. wonder if mean:

upvar 1 $name userarray

in order access array proc.

arrays debugging tcl tk tcldevkit

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -