Trace console.info from stacktrace

44 Views Asked by At

I would like to trace where the console.log() or console.warn or console.info was called. I looked stacktracejs and other library as reference, however most of them are showing example of error. I would like to trace back to where the info/log/warn is originated from.

any pointers?

1

There are 1 best solutions below

2
On

If you want to trace where the console.log console.warn or console.info are called, then try using Chrome and viewing in the developer console. The console will show what file and line the output originated.