Sentry (Debug In Prod)
Javascript
import * as Sentry from "@sentry/browser";
if(process.env.NODE_ENV === "production") {
Sentry.init({dsn: "https://[hi]@sentry.io/2590109"});
}Manually Logging
import * as Sentry from "@sentry/electron";
try {
aFunctionThatMightFail();
} catch (err) {
Sentry.captureException(err);
}
Sentry.captureMessage('Something went wrong');Adding Context in General
Adding Context for a Message
Creating Error Popup
Server-Side
Elixir
Node Specific
Last updated