Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b90654fefa9972ba475e699fd57f6688fce910cf
Ticket: 218004ffffffffffffffffffffffffffffffffff
add -x command line flag to trace each Tcl command
User & Date: nobody on 2000-10-26 00:51:53
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 724 RFE
    Version: 8.0.3
    SubmitDate: '1998-10-13'
    LastModified: '1999-11-02'
    Severity: MED
    Status: Closed
    Submitter: admin
    ChangedBy: hobbs
    OS: All
    OSVersion: NA
    Machine: NA
    FixedDate: '2000-10-25'
    FixedInVersion: NA
    ClosedDate: '1999-11-02'
    
    
    Both ksh, bash and I believe csh or sh support the set -x command. It
    
    prints each line as they are executed.
    
    
    
    What I would like to see is a similar flag in 'tclsh' that will print
    
    line by line as they are executed -- substituting arguments as they
    
    are determined.
    
    
    
    For instance:
    
    
    
    for file.tcl:
    
    
    
    set a 1
    
    if {"$a" == "1"} {
    
    puts "hello"
    
    } else {
    
    puts "goodbye"
    
    }
    
    
    
    tclsh -x file.tcl
    
    
    
    +set a 1
    
    +if {"1" == "1"} {
    
    +puts "hello"
    
    hello
    
    
    
    We will leave this behavior to the various debuggers that are
    already available (both commercial and free) that allow you to
    step through code command by command. 
    -- 11/02/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.0.3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "add -x command line flag to trace each Tcl command"
  11. type changed to: "RFE"