[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tcl/Tk errors
From: |
Nelson Minar |
Subject: |
Re: Tcl/Tk errors |
Date: |
Thu, 7 Mar 96 12:25:42 MST |
>is this stuff coming from libtclobjc, from tkobjc, or straight from
>the Tcl interpreter, or elsewhere?
>From the Tcl interpreter, by code invoked from libtclobjc, which in
turn might have been prepared by tkobjc :-) This is the first time
I've seen someone have an error like this.
>Can anyone tell me how to interpret these error messages?
It's a Tcl stack trace. Swarm widgets have funny names like
.w<Class>@<address>
so
address@hidden@address@hidden@0x401ec708
is an entry widget, inside a frame, inside a ClassDisplayWidget (part
of probe), inside a toplevel Frame.
>Is there a central error routine in any of those libraries that I could set
>a gdb breakpoint in, to break whenever one of these errors gets printed?
>Or any debugging options? Thanks!
I think Tcl has an error function that's called, but I don't know
offhand what it is. The Tcl interpreter object in Swarm has a debug
method, if you call
[globalTkInterp setEvalDebugPrint: 1]
it will cause all strings to be printed out before they go to the Tcl
interpreter. This lets you debug just the Tcl code: I've debugged
things by cutting and pasting into a wish and seeing what's breaking,
but it's a pain.
I can't really tell what's going on looking at that tcl trace. There's
some weird string
8@"cell"
that seems to be causing trouble. It looks like a Probe widget is
trying to display this as the value for a slot on on object, and
that's breaking Tcl somewhere (probably because it's not quoted right,
yay Tcl!). Can you show me the class you're probing? Do you know where
the 8@ could be coming from?