Skip to content
Tcl Source Code Artifact [9618346f3f]
Login

Artifact [9618346f3f]

Artifact 9618346f3fa8e4ea51fd61be135641ffa13f6a64:

Ticket change [9618346f3f] - New ticket [655645ffffffffff|655645ffff] <i>trace leavestep fires too early</i>. by nobody on 2002-12-18 09:54:30.
D 2002-12-18T09:54:30
J assignee dkf
J cmimetype text/plain
J comment [email protected]\n\nCommand\sexecution\straces\sfor\s"leavestep"\sfire\seven\s\nbefore\sthe\srespective\s"enterstep",\swith\snull\sstring\sresult,\s\nand\sthen\sagain\s(correctly)\safter\sthe\scommand\shas\sbeen\s\nexecuted.\sThis\shappens\sfor\sall\sbut\sthe\sfirst\scommand\sin\s\na\sproc.\n\nDemo\sscript:\n\nproc\senterStep\s{cmd\sop}\s{puts\s"enter\s$cmd/$op"}\nproc\sleaveStep\s{cmd\scode\sresult\sop}\s{puts\s"leave\s$cmd/\n$code/$result/$op"}\n\nproc\sfoo\sx\s{\n\s\s\s\sputs\sx=$x\n\s\s\s\sputs\s[info\spatchlevel]\n\s\s\s\sincr\sx\n}\ntrace\sadd\sexecution\sfoo\senterstep\senterStep\ntrace\sadd\sexecution\sfoo\sleavestep\sleaveStep\nfoo\s42\n\nproduces\s(8.4.1,\sW2k,\sSolaris):\n\nenter\sputs\sx=42/enterstep\nx=42\nleave\sputs\sx=42/0//leavestep\nleave\sinfo\spatchlevel/0//leavestep\nenter\sinfo\spatchlevel/enterstep\nleave\sinfo\spatchlevel/0/8.4.1/leavestep\nleave\sputs\s8.4.1/0//leavestep\nenter\sputs\s8.4.1/enterstep\n8.4.1\nleave\sputs\s8.4.1/0//leavestep\nleave\sincr\sx/0//leavestep\nenter\sincr\sx/enterstep\nleave\sincr\sx/0/43/leavestep\n
J foundin obsolete:\s8.4.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 18.\sCommands\sM-Z
J title trace\sleavestep\sfires\stoo\searly
J type Bug
K 655645ffffffffffffffffffffffffffffffffff
U nobody
Z cbdebea63c9a99fa023b5f4cf21414ad