Getting Chrome's console.log to display the line that called a function

后端 未结 2 1722
悲&欢浪女
悲&欢浪女 2020-12-21 23:10

Is there any way in the Chrome Console tab to display the address that called a function?

I have a function that\'s being called but I don\'t know where from. I know

2条回答
  •  星月不相逢
    2020-12-21 23:42

    I don't think you can do that with console.log(). Try with console.error() if you're fine with red output.

提交回复
热议问题