Aaron Gustafson created a javascript tracing routine called jsTrace.  This is a new debugging technique I'll have to try. 

Dean Edwards suggests an optimized method of object detection in javascript.