开发者

To get which function/line threw exception in javascript

开发者 https://www.devze.com 2022-12-28 16:52 出处:网络
I am trying to create a Exception class to get and send errors from client to server. I want to catch exception in javascri开发者_如何学Pythonpt function and push the details to the web service to wri

I am trying to create a Exception class to get and send errors from client to server. I want to catch exception in javascri开发者_如何学Pythonpt function and push the details to the web service to write to database.

But i couldn't get how to get which function/line throwed this exception. Is there any way to solve this?

To get which function/line threw exception in javascript


You can use this library: http://eriwen.com/javascript/stacktrace-update/

0

精彩评论

暂无评论...
验证码 换一张
取 消