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
Post a Comment