+2014-07-09 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * tkcon.tcl (idebug): allow multi-char patterns as debug id [Lama]
+
2013-01-22 Jeff Hobbs <jeffh@ActiveState.com>
* tkcon.tcl (tkcon show): catch deiconify as it will throw an
set level [expr {[info level]-1}]
switch -glob -- $opt {
on {
- if {[llength $args]} { set IDEBUG(id) $args }
+ # id is just arg0 [bug #50]
+ if {[llength $args]} { set IDEBUG(id) [lindex $args 0] }
return [set IDEBUG(on) 1]
}
off { return [set IDEBUG(on) 0] }
id {
if {![llength $args]} {
return $IDEBUG(id)
- } else { return [set IDEBUG(id) $args] }
+ } else { return [set IDEBUG(id) [lindex $args 0]] }
}
break {
if {!$IDEBUG(on) || $IDEBUG(debugging) || \