How to find error in TCL code
Posted
by Adi
on Stack Overflow
See other posts from Stack Overflow
or by Adi
Published on 2010-06-15T21:21:15Z
Indexed on
2010/06/15
21:42 UTC
Read the original article
Hit count: 319
Hi all,
I am learning TCL and wanted to know how can I find out errors in my code. I mean what line no is error happening or how can I debug it.
Following is the code which I am trying :
proc ldelete {list value}{
set ix [lsearch -exact $list $value]
if{$ix >=0}{
return [lreplace $list $ix $ix]
} else {
return $list
}
}
Following is the error i am getting :
extra characters after close-brace
I will appreciate the help.
Thanks aditya
© Stack Overflow or respective owner