Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c0ef1e090b55a48edb13ed68208ccd685f9ce73e
Ticket: 4f51fb37428603a028f505129f6978c2445fbc08
`Expect' memory faults upon issuing `c'
User & Date: ferrieux on 2015-07-12 22:47:06
Changes

  1. icomment:
    Expect is a venerable, but aging, part of Tcl history. By looking at  http://expect.cvs.sourceforge.net/viewvc/expect/expect/?sortby=date , you can see the recent activity and people involved. 
    
    Now Expect's essential added value over Tcl is the ability to wrap pseudoterminals around a keyboard-interactive tool  so that they never notice they are being automated. You're highlighting a secondary item which I wasn't aware of: a cli debugger. But if it's all you need from Expect, it might be a good idea to look for alternatives.
    
    By "instrumented [proc]" I mean the recent thread "Run tcl script in verbose mode" on c.l.t : https://groups.google.com/d/msg/comp.lang.tcl/w_qauHmQW5E/oNObR4ei4Z0J
    
    Note that thread also mentions [trace add execution] which is the more natural answer (though more heavyweight).
    
    As an aside, "don't want/need any GUI" sounds like me... but if you continue along that (good) path, you may soon realize that stepping through is not really needed. Tcl's seamless stringification of any datastructure makes it trivial to dump any part of the state by a simple [puts $something]. No real need to step through when an a posteriori observation of logs says it all. Moreover, that'll work also for time-sensitive programs.
    
  2. login: "ferrieux"
  3. mimetype: "text/plain"