[MacPorts] CommittersTipsAndTricks modified

MacPorts noreply at macports.org
Sun Mar 14 18:57:29 PDT 2010


Changed page "CommittersTipsAndTricks" by raimue at macports.org from 91.11.252.229*
Page URL: <http://trac.macports.org/wiki/CommittersTipsAndTricks>
Diff URL: <http://trac.macports.org/wiki/CommittersTipsAndTricks?action=diff&version=31>
Revision 31

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: CommittersTipsAndTricks
=========================================================================
--- CommittersTipsAndTricks (version: 30)
+++ CommittersTipsAndTricks (version: 31)
@@ -236,6 +236,22 @@
 % strsed "foo" "s/f/m/"
 moo
 % 
+}}}
+
+== Debugging Tcl scripts == #debugger
+
+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.
+
+Run with:
+{{{
+$ expect -D1 <file> <args>
+}}}
+For example:
+{{{
+$ expect -D1 foo.tcl -bar
+1: proc main {args} {
+...
+dbg1.0>
 }}}
 
 

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on CommittersTipsAndTricks. If it was not you, please
report to .


More information about the macports-changes mailing list