Skip to content
Tcl Source Code History Of Ticket 1309482fffffffff
Login

History Of Ticket 1309482fffffffff

Artifacts Associated With Ticket 1309482fffffffff

  1. Ticket change [029c23c57c] (rid 119678) by nicolascastagne on 2005-09-30 13:22:30:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      When using Tcl embeded in a C/C++ application in order to 
      execute scripts writen by end users, it would be useful to  
      easily display basic debug information to the user in case 
      an error occurs. 
      Among these (and as minima) the error line on which the 
      error occured. 
       
      Today, the errorline registered is not sufficiently precise for 
      a end user.  
       
      Consider the following rather simple example : 
       
       1    if 1 { 
       2        set a 2 
       3        set a 2 3 
       4    } 
       
      The error is on line 3. 
      Now, if we have in the C application : 
       
          result = Tcl_EvalEx(tclInterp, script, length,  
      TCL_EVAL_GLOBAL); 
              if (result != TCL_OK ) { 
                 Tcl_Obj *options = Tcl_GetReturnOptions(tclInterp, 
      result); 
                 Tcl_Obj *key = Tcl_NewStringObj("-errorline", -1); 
                 Tcl_Obj *errorline; 
                 Tcl_DictObjGet(NULL, options, key, &errorline); 
                 printf(" ERROR line %s\n", Tcl_GetString(errorline)); 
          } 
       
      the output is "ERROR line 1". 
       
      Basically, the error line is not retrieved within the nested 
      script of the "if" command. 
       
      It would be useful to get : 
      - the error line 
      - the name of the procedure 
      whatever the level of 'nesting' is is a script. 
       
      ------ 
      I propose the feature request on the behalf of Don Porter, 
      who asked me to do so on comp.lang.tcl 
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nicolascastagne"
    9. subsystem initialized to: "45. Parsing and Eval"
    10. title initialized to: "retrieve precise line number in case of error"
    11. type initialized to: "RFE"
  2. Ticket change [9b3a3ead80] (rid 111093) by nicolascastagne on 2005-09-30 23:10:23:

    1. assignee changed to: "dgp"
    2. priority changed to: "6"
  3. Ticket change [f1624cac6f] (rid 109356) by dgp on 2006-10-10 22:07:40:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      
      See TIP 280.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. username: "dgp"
  4. Ticket change [51ce344d93] (rid 126193) by hobbs on 2007-02-10 05:37:40:

    1. closedate changed to: "2007-02-09T22:37:40"
    2. closer changed to: "hobbs"
    3. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      TIP 280 in 8.5 now.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "hobbs"