Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cdc43d5a8f11f21b86767ab24b5296c57662c31e
Ticket: 3439728fffffffffffffffffffffffffffffffff
Leave execution trace created in the same proc doesn't fire
User & Date: msofer on 2011-12-02 05:17:00
Changes

  1. icomment:
    The real issue is: when a command call occurs, are there any execution traces active in the interpreter or for that specific command?
    
    1. if not, then *that* command call will ignore leave traces until it returns
    2. if yes, leave traces will be called - whatever they are when the command is done. That is, a *change* during execution will be taken into account, but creation of traces on an untraced-at-invocation command will not.
    
    Even more confusing: if instead of uncommenting that line you replace it with
        trace add execution test enter GTrace
    then ... the leave trace fires too! The important thing is: was the command traced on invocation or not?
    
    The docs are possibly unclear about this (granted, somewhat confusing) behaviour. Suggestions?
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"