Here's a simple console.log function that outputs stuff to the console:
function u(x) { console.log(x); } // line 41
But this is not altogether efficient for debugging purposes, as the browser will always output the line that console.log() was invoked on, which is line 41 in this case.
The error or whatever could be on line 741, but it would not matter. I realize that I could simply use console.log all the time instead of creating a shorter custom function, but if I don't have to, well...
How could u(x) display the actual line that it was invoked on?
Cheers!