A while back, I remember using a piece of code (4-5 lines), added to the script/server file, which would show a puts trace of every method call when webrick was running. The output was something like:
Entering: x method
Exiting: x method
I cannot for the life of me remember how it was done, or how to replicate it. Anyone have any ideas?
Hard to say, there are any number of ways to do this, from
Kernel.set_trace_func, or tracepoint, or rbtrace, or Unroller (unclear how well it works these days).You might be thinking specifically of this SO answer, though.