If method A
is called by other methods,
Is there any way to know which function call it at run time.
I can grep the whole project to list all the possible calling path,
But if I can know it at run time, it'll be more helpful.
How can I get it by embedded something in method A
for example, the calling flow maybe
C() -> B() -> A()
H()-> G()-> B()-> A()
I wanna know the recent 3,or 5 method calls,
I want to trace the flow in my controllers and helpers in Rails project But I require the tracer and it showed me.
Routing Error
undefined method `on' for Tracer:Class
Try running rake routes for more information on available routes.
Here's my code
Tracer.on
def generate_nonexisted_book(price)
~~~
end
Tracer.off