3

I like a bit of TiVo hacking in spare time - TiVo uses a Linux variant and TCL. I'd like to write TCL scripts on my Windows laptop, test them and then FTP them over to my TiVo.

Can I have a recommendation for a TCL debugging environment for Windows, please?

ColinYounger
  • 6,735
  • 5
  • 31
  • 33

8 Answers8

4

Komodo from Activestate is a good IDE for Windows/Linux. There is a trial version - I am not sure if there is a free version after trial though.

Abhinav
  • 2,876
  • 3
  • 22
  • 22
2

I'm not sure that you need a debugging environment as such. Just grab the binary release from ActiveState (http://www.activestate.com/Products/activetcl/index.mhtml) and run your scripts from the command prompt (C:/blahblah/tclsh myprog.tcl) and see what it spits out.

I'd advise against building it from source because it doesn't really gain you anything.

Toby
  • 27
  • 1
1

This wiki page discusses tools for developing and debugging in Tcl. In particular, I've been enamoured with tkinspect (mentioned on that wiki page with its own page elsewhere on the wiki) which allows one in a linux or other unix x environment to interact with a running tk application to attempt to do some debugging. Of course, ActiveState's commercial product "tcl dev kit" has a debugger. There are other debuggers - free and not so free - discussed on the wiki as well.

lvirden
  • 56
  • 2
1

There is now a Tcl plugin for Netbeans, which has a debugging feature. Here are some screenshots: http://wiki.tcl.tk/28657

vanje
  • 10,180
  • 2
  • 31
  • 47
1

If you are looking for a Debugger with editing possibilities, RamDebugger is also a nice tool.

sjngm
  • 12,423
  • 14
  • 84
  • 114
joheid
  • 418
  • 1
  • 3
  • 8
0

ActiveState has a Tcl development kit (not free, but cheap) that I've used in the past. It even worked with our embedded tcl interpreter.

http://www.activestate.com/tcl_dev_kit/

Dana Robinson
  • 4,304
  • 8
  • 33
  • 41
0

I've found this breakpoint setter from the Tcl wiki (from Richard Suchenwirth) to be handy. Once the interpreter sees a call to this, say "bp beforehairyfunction", it pauses and gives you a tclsh prompt.

proc bp {{s {}}} {
        if ![info exists ::bp_skip] {
           set ::bp_skip [list]
        } elseif {[lsearch -exact $::bp_skip $s]>=0} return
    if [catch {info level -1} who] {set who ::}
    while 1 {
        puts -nonewline "$who/$s> "; flush stdout
        gets stdin line
        if {$line=="c"} {puts "continuing.."; break}
        if {$line=="i"} {set line "info locals"}
        catch {uplevel 1 $line} res
        puts $res
    }
 }
ctd
  • 1,693
  • 12
  • 27
0

Tcl Dev Kit (TDK) contains a debugger, which you can try. Since 2018 it is open source (BSD-3 license) and can be downloaded from github:

https://github.com/ActiveState/tdk

The previous paid version was easy to install on Windows, the open source version is without setup.