<script src="https://cdn.ravenjs.com/3.0.4/raven.min.js"></script>Raven.config('https://<key>@app.getsentry.com/<project>').install()try {
doSomething(a[0])
} catch(e) {
Raven.captureException(e)
}Install
By default, Raven makes a best effort to capture any uncaught exception.
To report errors manually :
Config DNS
try {
doSomething(a[0])
} catch(e) {
Raven.captureException(e)
}Install
To report errors manually :
Config
npm install raven --savevar raven = require('raven');
// Config DNS
var client = new raven.Client('https://<key>:<secret>@app.getsentry.com/<project>');
// Use Sentry as global error tracker.
client.patchGlobal();
Integrating Sentry is super easy