telnet spawn_id not found in debug mode (Komodo)

Posted by tcl_noob on 2016-05-17 22:32
Forums: ActiveTcl discussion | OS: Gentoo


New to tcl and trying to debug a script in Eclipse. The script works fine when I run it (with tclsh) but when running in debug mode with ActiveState Komodo debugger spawning a telnet session I cannot get a spawn_id:

    spawn telnet $nodeIp
    set spawnId $spawn_id

Execution error 206: can't read "spawn_id": no such variable
    while executing
"set spawnId $spawn_id"

How do I setup Eclipse to get the spawn_id? I found an old post about a fix for this (2008...) but I am running the latest version: 9.3.2.

dbgp_tcldebug -V
Tcl DBGp Build 299366

expect -v
expect version

tclsh = tclsh8.5

Linux 4.1.16 #1 SMP PREEMPT Sat Jan 23 13:43:20 CET 2016 x86_64 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz GenuineIntel GNU/Linux