M
M
Max Yawo2016-02-07 22:11:39
ruby
Max Yawo, 2016-02-07 22:11:39

How to build a call tree for JavaScript?

I need to know the sequence of function calls. How can I do that?
To be more precise, I want to get the following functionality: I get all function call trees by the page address. If there are some implementations in ruby, then it’s very good.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Ukolov, 2016-02-07
@alexey-m-ukolov

Use the debugger built into the browser - stop the execution where necessary and look at the stack.

R
RubaXa, 2016-02-07
@RubaXa

- debugger;
- console trace();

M
Mikhail Beloshitsky, 2016-02-08
@mbeloshitsky

Alternatively, there is a special stacktrace.js library .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question