Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2d8d42f98d8899866db4de3567c337cc02a009d7
Ticket: 614282ffffffffffffffffffffffffffffffffff
improve docs for trace enterstep behavior
User & Date: vincentdarley on 2003-07-17 04:57:28
Changes

  1. icomment:
    Logged In: YES 
    user_id=32170
    
    I believe 'enterstep' should fire on *all* commands inside 'x', 
    at all nested levels, as this indicates:
    
    (bin) 2 % proc report args {puts [info level 0]}
    (bin) 3 % proc x {} y
    (bin) 4 % proc y {} z
    (bin) 5 % proc z {} stuff
    (bin) 6 % proc stuff {} { puts stuff }
    (bin) 7 % trace add execution x enterstep report
    (bin) 8 % x
    report y enterstep
    report z enterstep
    report stuff enterstep
    report {puts stuff} enterstep
    stuff
    (bin) 9 % 
    
    When you now add multiple 'enterstep' traces, things get 
    more complicated, but the behaviour you show looks 
    reasonable.
    
    This was the design of tip62, so that it allowed, effectively, 
    arbitrary tracing of execution for profiling or debugging 
    purposes inside any given procedure.
    
    It seems perhaps you have a different design in mind?
    
    
    
    
  2. login: "vincentdarley"
  3. mimetype: "text/plain"
  4. username: "vincentdarley"