Re: Show argument values in bgerror

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Show argument values in bgerror
De : alexandru.dadalau (at) *nospam* meshparts.de (alexandru)
Groupes : comp.lang.tcl
Date : 18. Sep 2024, 11:23:34
Autres entêtes
Organisation : novaBBS
Message-ID : <6124e3922c51988d84ad3d7945d8e5bd@www.novabbs.com>
References : 1 2
User-Agent : Rocksolid Light
Hi Harald,
I'll use your example with small changes to explain the issue:
proc e {v} {incr v}
set x "a"
e $x
puts $errorInfo
will output:
expected integer but got "a"
    while executing
"incr v"
    (procedure "e" line 1)
    invoked from within
"e $x"
    (file "C:/arbeit/MESHPARTS-Software/test3.tcl" line 4)
    invoked from within
"source -encoding utf-8 C:/arbeit/MESHPARTS-Software/test3.tcl"
As you can see, upstream procedure calls are printed with dollar sign,
unevaluated values.
In more complex nested calls, the information about arguments gets lost
and errorInfo does not show which argument values were used.

Date Sujet#  Auteur
17 Sep 24 * Show argument values in bgerror12alexandru
18 Sep 24 +* Re: Show argument values in bgerror2et99
18 Sep 24 i`- Re: Show argument values in bgerror1alexandru
18 Sep 24 +* Re: Show argument values in bgerror8Harald Oehlmann
18 Sep 24 i`* Re: Show argument values in bgerror7alexandru
18 Sep 24 i `* Re: Show argument values in bgerror6Harald Oehlmann
18 Sep 24 i  `* Re: Show argument values in bgerror5alexandru
18 Sep 24 i   `* Re: Show argument values in bgerror4Harald Oehlmann
20 Sep 24 i    +- Re: Show argument values in bgerror1alexandru
24 Sep 24 i    `* Re: Show argument values in bgerror2rene
13 Oct 24 i     `- Re: Show argument values in bgerror1Harald Oehlmann
18 Sep 24 `- Re: Show argument values in bgerror1Don Porter

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal