Changes between Version 30 and Version 31 of CommittersTipsAndTricks
- Timestamp:
- Mar 15, 2010, 1:57:29 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CommittersTipsAndTricks
v30 v31 237 237 moo 238 238 % 239 }}} 240 241 == Debugging Tcl scripts == #debugger 242 243 Tcl scripts can be debugged with the `expect` tool, which provides a debugging interface similar to gdb for those who are familiar with that. For a command overview, just type `h` at the prompt. 244 245 Run with: 246 {{{ 247 $ expect -D1 <file> <args> 248 }}} 249 For example: 250 {{{ 251 $ expect -D1 foo.tcl -bar 252 1: proc main {args} { 253 ... 254 dbg1.0> 239 255 }}} 240 256