karlssonlord / KL_LessFriction

Checkout framework for Magento by Karlsson & Lord
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Better logging #11

Open JCB-K opened 11 years ago

JCB-K commented 11 years ago

Right now, when developer mode is turned on all logging is reported as coming from line 222, as that's where the logging function is defined. It'd be useful to have the line reported as the actual line where the logging function is called, for quicker tracebacks.

Any ideas how to do this?

screen shot 2013-10-02 at 14 08 05

https://github.com/karlssonlord/KL_LessFriction/blob/master/skin/frontend/base/default/kl/lessfriction/lessfriction.js?source=c#L236

ptz0n commented 11 years ago

http://stackoverflow.com/questions/2343343/how-can-i-determine-the-current-line-number-in-javascript