TCL开发:调试环境
我喜欢在业余时间进行一些 TiVo 黑客活动 - TiVo 使用 Linux 变体和 TCL。 我想在我的 Windows 笔记本电脑上编写 TCL 脚本,测试它们,然后将它们通过 FTP 传输到我的 TiVo。
请问可以推荐一个 Windows 下的 TCL 调试环境吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
Tcl Dev Kit (TDK) 包含一个调试器,您可以尝试一下。 自 2018 年起,它是开源(BSD-3 许可证),可以从 github 下载:
https://github.com/ActiveState/tdk
以前的付费版本在Windows上很容易安装,开源版本则无需安装。
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.
我发现这个来自 Tcl wiki 的断点设置器(来自 Richard Suchenwirth)非常方便。 一旦解释器看到对此的调用,例如“bp beforehairyfunction”,它就会暂停并给您一个 tclsh 提示。
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.
如果您正在寻找具有编辑功能的调试器,
RamDebugger 也是一个不错的工具。
If you are looking for a Debugger with editing possibilities,
RamDebugger is also a nice tool.
现在有一个 Netbeans 的 Tcl 插件,它具有调试功能。 以下是一些屏幕截图:http://wiki.tcl.tk/28657
There is now a Tcl plugin for Netbeans, which has a debugging feature. Here are some screenshots: http://wiki.tcl.tk/28657
Activestate 的 Komodo 是一款适用于 Windows/Linux 的优秀 IDE。 有一个试用版 - 我不确定试用后是否有免费版本。
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.
我不确定您是否需要这样的调试环境。 只需从 ActiveState 获取二进制版本即可 (http://www.activestate.com/Products/ activetcl/index.mhtml)并从命令提示符(C:/blahblah/tclsh myprog.tcl)运行脚本,看看它会输出什么。
我建议不要从源代码构建它,因为它并没有真正给你带来任何好处。
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.
此 wiki 页面讨论 Tcl 中的开发和调试工具。 特别是,我很喜欢 tkinspect(在该 wiki 页面上提到过,在 wiki 的其他地方也有自己的页面),它允许 linux 或其他 unix x 环境中的用户与正在运行的 tk 应用程序进行交互,以尝试进行一些调试。 当然,ActiveState的商业产品“tcl dev kit”有一个调试器。 维基百科上也讨论了其他调试器——免费的和不那么免费的。
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.
ActiveState 有一个我过去使用过的 Tcl 开发套件(不是免费的,但很便宜)。 它甚至可以与我们的嵌入式 tcl 解释器一起使用。
http://www.activestate.com/tcl_dev_kit/
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/