<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - How to debug expect program - Comments</title>
 <link>http://community.activestate.com/forum-topic/how-to-debug-expect-progr</link>
 <description>Comments for &quot;How to debug expect program&quot;</description>
 <language>en</language>
<item>
 <title>More problems</title>
 <link>http://community.activestate.com/forum-topic/how-to-debug-expect-progr#comment-2563</link>
 <description>&lt;p&gt;I installed ActiveTcl and tried to use its tclsh as the interpreter for debugging. I am not sure what is going on, but when running the script under the debugger with package require Expect added, I see the very first statement in the script &#039;source $expect_library/test.exp&#039; fail. &lt;/p&gt;
&lt;p&gt;The error message is:&lt;br /&gt;
--------------------&lt;/p&gt;
&lt;p&gt;couldn&#039;t read file &quot;/auto/gsg-sw/inst/sparc-sun-solaris2.8/ActiveTcl-8.4.1.5.0/lib/expect5.44.1/test.exp&quot;: no such file or directory&lt;br /&gt;
    while executing&lt;br /&gt;
&quot;source $expect_library/test.exp&quot;&lt;br /&gt;
----------------------------------------------&lt;/p&gt;
&lt;p&gt;It look like the search path is incorrect.&lt;br /&gt;
How can I fix it?&lt;/p&gt;
&lt;p&gt;The script runs OK with the original expect executable.&lt;/p&gt;
&lt;p&gt;---------------&lt;br /&gt;
YS&lt;/p&gt;
</description>
 <pubDate>Fri, 10 Aug 2007 13:30:11 -0700</pubDate>
 <dc:creator>Yuri Shtil</dc:creator>
 <guid isPermaLink="false">comment 2563 at http://community.activestate.com</guid>
</item>
<item>
 <title>Try ActiveTcl&#039;s expect</title>
 <link>http://community.activestate.com/forum-topic/how-to-debug-expect-progr#comment-2562</link>
 <description>&lt;p&gt;I would recommend trying again by installing ActiveTcl, which is what provides tclsh and the Expect extension.  This should be compatible with your script and is known to work.&lt;/p&gt;
</description>
 <pubDate>Fri, 10 Aug 2007 13:03:15 -0700</pubDate>
 <dc:creator>jeffh</dc:creator>
 <guid isPermaLink="false">comment 2562 at http://community.activestate.com</guid>
</item>
<item>
 <title>Using expect fails</title>
 <link>http://community.activestate.com/forum-topic/how-to-debug-expect-progr#comment-2554</link>
 <description>&lt;p&gt;When I specify the expect as the Tcl interpreter, I get an error popup saying that a connection error occurred.&lt;/p&gt;
&lt;p&gt;I could not find tclsh in the TclDevKit installation tree. Where is it?&lt;br /&gt;
---------------&lt;br /&gt;
YS&lt;/p&gt;
</description>
 <pubDate>Fri, 10 Aug 2007 09:25:36 -0700</pubDate>
 <dc:creator>Yuri Shtil</dc:creator>
 <guid isPermaLink="false">comment 2554 at http://community.activestate.com</guid>
</item>
<item>
 <title>How to debug expect program</title>
 <link>http://community.activestate.com/forum-topic/how-to-debug-expect-progr#comment-2550</link>
 <description>&lt;p&gt;You can specify &#039;expect&#039; as the Tcl interpreter in the program preferences for debugging in the TDK and it should work.  Alternatively, if you are using ActiveTcl, then the &#039;package require Expect&#039; should be all that is necessary.  If that is not working, double-check that you are invoking the ActiveTcl tclsh and not another variant.&lt;/p&gt;
</description>
 <pubDate>Thu, 09 Aug 2007 18:15:29 -0700</pubDate>
 <dc:creator>jeffh</dc:creator>
 <guid isPermaLink="false">comment 2550 at http://community.activestate.com</guid>
</item>
<item>
 <title>How to debug expect program</title>
 <link>http://community.activestate.com/forum-topic/how-to-debug-expect-progr</link>
 <description>&lt;p&gt;I want to debug an existing expect script. It uses an expect interpreter,&lt;br /&gt;
How do I use the tcl dev kit for this?&lt;br /&gt;
I added the line package require Expect to then script, but it cannot find the package. I tried to set TCL_LIBRARY, TCLLIBRARY to the location where  pkgIndex.tcl and libexpect.so are to no avail.&lt;/p&gt;
&lt;p&gt;Please advise what to do.&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/how-to-debug-expect-progr#comments</comments>
 <category domain="http://community.activestate.com/forums/tdk-support-0">TDK support</category>
 <category domain="http://community.activestate.com/os/solaris-sparc">Solaris SPARC</category>
 <pubDate>Thu, 09 Aug 2007 16:14:28 -0700</pubDate>
 <dc:creator>Yuri Shtil</dc:creator>
 <guid isPermaLink="false">1261 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
