On Wednesday, January 9, 2013 4:56:37 PM UTC-6, Edward K. Ream wrote:
>
> Rev 5551 improves the SherlockTracer class in leoGlobals.py.  Better 
> traces, and optional traces entry/exit from functions separately.
>

Recent revs, concluding with  rev 5567, add more features to tracing:

- Optionally show calling args and return args.
- The ability to enable traces by class name.  For example::

    '-.*AClassName.*' # Disables traces of all methods of the class
    '-.*AClassName::.*' # Disables traces of all methods except the ctor.

I plan no further work at present on the SherlockTracer class.  However, it 
would be possible to override this class to gather method-specific data as 
desired.  I have the feeling that this might be a way to explore code more 
fully.  

There is a tension here: on the one hand, substantial knowledge of any code 
is required in order to know what data to gather.  In this sense, 
subclasses would be more like documentation tools.  Otoh, we need all the 
help we can get exploring other people's code, so maybe an approach like 
this would be valuable.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/leo-editor/-/fH9UgTbSg-wJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to