Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-16
23:01 • Closed ticket [218004ffff]: add -x command line flag to trace each Tcl command</... artifact: 8d40044fe6 user: dgp
23:00 • Open ticket [218004ffff]. artifact: 755d2c26ac user: dgp
2000-10-26
08:12 • Closed ticket [218004ffff]. artifact: 8017ea7040 user: welch
00:51 • New ticket [218004ffff]. artifact: b90654fefa user: nobody

add -x command line flag to trace each Tcl command

Closed / Fixed218004ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:51:53
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
welch Closed ticket [218004ffff]. [History diff]2000-10-26 08:12:11
dgp Open ticket [218004ffff]. [History diff]2001-04-16 23:00:39
dgp Closed ticket [218004ffff]. [History diff]2001-04-16 23:01:09
Log in (anonymous is fine) to add a comment.