javascript - How I can search what is call my function? -



javascript - How I can search what is call my function? -

for illustration have function following:

function example() { console.log('do something'); }

when run javascript console in google chrome, can see like:

2 script_file.js

oops, see function called twice. want find events or functions phone call function example(). how can it? may browser plugin exists, or don't know chrome developer tools.

i need in solution chrome only.

you can utilize function.caller.

function a() { console.log(a.caller); } function b() { a(); } b(); // function b() { a(); }

javascript google-chrome google-chrome-devtools

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -