View · Search · Index
No registered users in community xowiki
in last 10 minutes

Re: [Xotcl] full trace support for XOTcl methods/procs

From: Kristoffer Lawson <setok_at_fishpool.com>
Date: Thu, 3 Jan 2008 00:20:34 +0200

On 2 Jan 2008, at 23:46, Eckhard Lehmann wrote:

> Kristoffer Lawson schrieb:
>> You could just wrap it in a package that sets a Tcl [trace] for
>> normal commands combined with filters for the XOTcl stuff, just
>> checking to see if the command names match, if necessary. Or maybe
>> I've missed something here and I'm thinking to simple :-)
> The problem is that I need something that is like enterstep/
> leavestep for [trace], but for XOTcl. Filters do only intercept
> calls to XOTcl objects but not to Tcl proc's.

I understand that requirement. That is why I am suggesting you use a
combination of XOTcl filters and [trace]. It might be that even
[trace] is enough, if it catches all Tcl command calls (I haven't
looked at it). If not, have XOTcl filters for the XOTcl stuff and
[trace] for the rest?

            / http://www.scred.com/
            / http://www.fishpool.com/~setok/