Skip to content

Commit

Permalink
fix: breakpoint not working (Kong#8236)
Browse files Browse the repository at this point in the history
  • Loading branch information
CurryYangxx authored Dec 6, 2024
1 parent dcf5ae9 commit 10f1486
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/insomnia/src/main/sentry.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as Sentry from '@sentry/electron/main';

import * as session from '../account/session';
import { isDevelopment } from '../common/constants';
import { type ChangeBufferEvent, database as db } from '../common/database';
import { SENTRY_OPTIONS } from '../common/sentry';
import * as models from '../models/index';
Expand Down Expand Up @@ -54,7 +55,7 @@ export function initializeSentry() {
*/
shouldSend: () => enabled,
},
integrations: [
integrations: isDevelopment() ? [] : [
Sentry.anrIntegration({ captureStackTrace: true }),
],
});
Expand Down
3 changes: 2 additions & 1 deletion packages/insomnia/src/ui/sentry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as Sentry from '@sentry/electron/renderer';

import { isDevelopment } from '../common/constants';
import { SENTRY_OPTIONS } from '../common/sentry';

export function initializeSentry() {
Expand All @@ -10,7 +11,7 @@ export function initializeSentry() {
// set 0.1 sample rate for traces, only send 10% of traces, and check whether the limit is exceeded
// https://konghq.sentry.io/settings/billing/overview/?category=transactions
tracesSampleRate: 0.1,
anrDetection: {
anrDetection: isDevelopment() ? false : {
captureStackTrace: true,
},
});
Expand Down

0 comments on commit 10f1486

Please sign in to comment.