I use the window.onerrorand method $(document).ajaxError, and I know that I can get the js name and line number. But in my case, js files are shrinking and clogged, which is why both of these data are out of date for me.
This is their way by which I can write down the name and parameters of the function in which the error occurred.
source
share