While debugging a site, is there any way to have a stack-trace-like thing in order to have a view of all the functions called? For example, to know what happens when I click on a link?

I know some function is called but I don't know which.