[ruby-talk:00917] Re: Determining the called class in tracing

From: Dave Thomas <Dave@...>
Date: 1999-11-09 16:32:09 UTC
List: ruby-talk #917
matz@netlab.co.jp (Yukihiro Matsumoto) writes:

> |Is there any way to determine the identity of the class containing the 
> |invoked method on a 'call' or 'c-call' trace event?
> 
> `call' and `c-call' do not contain class information, but `return' and
> `c-return' event do.
> 
> Should we add information to the `call' and `c-call'?

What I'm looking at doing is adding DbC features (class invariants,
pre- and post-conditions), and I thought it would be interesting to
try to use the trace facility to do it.

The current problem is identifying from the trace exactly which method is
being executed. Right now I'm playing around with ways of doing this
using the binding passed in, so I'm not requesting any changes to
tracing.

Regards

Dave


-- 
Thomas Consulting.
Innovative and successful developments with Unix, Java, C, and C++. 

Out now! The Pragmatic Programmer.  www.pragmaticprogrammer.com/ppbook/

In This Thread

Prev Next