抓住所有的JavaScript错误并将其发送到服务器 [英] Catch all javascript errors and send them to server

查看:118
本文介绍了抓住所有的JavaScript错误并将其发送到服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道有没有人有全球处理JavaScript错误的经验,并将它们从客户端浏览器发送到服务器。

I wondered if anyone had experience in handling javascript errors globally and send them from the client browser to a server.

我想我的观点很清楚,我想知道客户端发生的每个异常,错误,编译错误...,并将其发送到服务器报告他们。

I think my point is quite clear, i want to know every exception, error, compilation error, ... that happens on the client side and send them to the server to report them.

我主要使用mootools和head.js(js端)和django作为服务器端(不是重要的)

I'm mainly using mootools and head.js (for the js side) and django for the server side (not that it matters...).

感谢您的帮助。

请问。

推荐答案

我最近在生产中测试了 Sentry ,它工作正常(JS和其他语言,如PHP)

I recently tested Sentry on production and it works fine (JS and other languages like PHP)

1-它是开源的(您可以在自己的服务器上安装)
2-您可以使用免费计划(100报告/日)

1- It's open source (You can install it on your own server) 2- You can use the free plan (100 reports / day)

或安装在您的服务器上: https: //github.com/getsentry

Or install it on ur server : https://github.com/getsentry

这篇关于抓住所有的JavaScript错误并将其发送到服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆