+ -
当前位置:首页 → 问答吧 → TCL语言有免费的Debug工具吗?

TCL语言有免费的Debug工具吗?

时间:2011-03-28

来源:互联网

哈哈,大家好,我现在开始学习TCL语言了,算是新手,还在书面上操练呢。

但是现在学习下来,遇到一点问题,就是不知道到什么地方去找到免费的TCL的Debug工具

也就是说用什么办法来看我写的脚本运行的情况,或者看各个变量的值啊?

各位前辈帮我看看,有免费的开发软件不?

哈哈,多谢阿!

作者: tony_wu_ad   发布时间: 2011-03-28

你不是说你自己正在学吗?
man expect:
http://www.tcl.tk/man/expect5.31/expect.1.html



QUOTE:
The -d flag enables some diagnostic output, which primarily reports internal activity of commands such as expect and interact. This flag has the same effect as "exp_internal 1" at the beginning of an Expect script, plus the version of Expect is printed. (The strace command is useful for tracing statements, and the trace command is useful for tracing variable assignments.) (When using Expectk, this option is specified as -diag.)

The -D flag enables an interactive debugger. An integer value should follow. The debugger will take control before the next Tcl procedure if the value is non-zero or if a ^C is pressed (or a breakpoint is hit, or other appropriate debugger command appears in the script). See the README file or SEE ALSO (below) for more information on the debugger. (When using Expectk, this option is specified as -Debug.)




QUOTE:
debug [[-now] 0|1]
controls a Tcl debugger allowing you to step through statements, set breakpoints, etc.
With no arguments, a 1 is returned if the debugger is not running, otherwise a 0 is returned.

With a 1 argument, the debugger is started. With a 0 argument, the debugger is stopped. If a 1 argument is preceded by the -now flag, the debugger is started immediately (i.e., in the middle of the debug command itself). Otherwise, the debugger is started with the next Tcl statement.

The debug command does not change any traps. Compare this to starting Expect with the -D flag (see above).

See the README file or SEE ALSO (below) for more information on the debugger.

作者: xiaopan3322   发布时间: 2011-03-28

热门下载

更多