Changes between Version 30 and Version 31 of CommittersTipsAndTricks


Ignore:
Timestamp:
Mar 15, 2010, 1:57:29 AM (14 years ago)
Author:
raimue (Rainer Müller)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CommittersTipsAndTricks

    v30 v31  
    237237moo
    238238%
     239}}}
     240
     241== Debugging Tcl scripts == #debugger
     242
     243Tcl 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
     245Run with:
     246{{{
     247$ expect -D1 <file> <args>
     248}}}
     249For example:
     250{{{
     251$ expect -D1 foo.tcl -bar
     2521: proc main {args} {
     253...
     254dbg1.0>
    239255}}}
    240256