[Xotcl] full trace support for XOTcl methods/procs

Eckhard Lehmann eckhardnospam at gmx.de
Tue Jan 1 13:33:54 CET 2008


Happy New Year!

> > I know there are filters, but I am looking for an easier way to  
[..]

> Why not use filters with filterguards? I would've thought that would  
> be the exact mechanism required.

Yes, it would be possible to do it that way, but it is very complicated:
- Register a filter that is by default applied to _all_ instprocs
- restrict the appliance of this filter via a filterguard

Sounds like "shooting from behind through the brest into the eye". Why not simply add/remove execution of code to particular methods, like with [trace]? There is already a [trace] method for XOTcl objects, but just for variables (at least from the documentation)...
Especially I look for a way to execute a proc before *every* statement inside an instproc. [trace] can do this via the "enterstep" and "leavestep" operators to [trace add execution]. Is this possible with filters and filterguards?


Thanks,
Eckhard

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger?did=10


More information about the Xotcl mailing list