Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c29d6162a05f7b0d21e5948b9233bc8551be9208c8ee4c123feec25ce25795fb
Ticket: 008773b7a3cdd530a184b2e8902d0679e246de74
how to log Tcl commands that are executed via the source command using the Tcl C API
User & Date: arvind29 on 2025-07-24 08:56:18
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    During the execution of a user command I need to report the script file name and line number if the command is inside a script file. The Tcl_Interp errorLine member variable is updated only if the command returns TCL_ERROR code, otherwise I can't see any way to find out the current command, line number and file name.
    
  5. foundin changed to: "8.6.8"
  6. is_private changed to: "0"
  7. login: "arvind29"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "24b6332679e5f96732dab3b9d46f1f0d512b2551"
  10. resolution changed to: "None"
  11. severity changed to: "Critical"
  12. status changed to: "Open"
  13. submitter changed to: "arvind29"
  14. subsystem changed to: "45. Parsing and Eval"
  15. title changed to:
    how to log Tcl commands that are executed via the source command using the Tcl C API
    
  16. type changed to: "Support"