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?