From: Kyku Date: 2005-12-05T05:15:07+09:00 Subject: Automatic trace utility. --Boundary-00=_u70kD5qOhV8wfs+ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi All, Recently I'm writing lots of recursive functions that I'd like to test by examining their backtraces. I wonder if something like the following is possible: def foo (x, y, z) trace if $DEBUG # ... end foo(1,2,3) "trace: foo (1,2,3) called" The trace function would have to figure out function's name and list arguments. If someone has some ideas, please let me know. Thanks in anticipation. --Boundary-00=_u70kD5qOhV8wfs+--