You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This integration is enabled by default. If you'd like to modify your default integrations, read [this](./../#modifying-default-integrations).
36
36
37
-
This integration captures local variables to exception frames. To enable capturing local variables via the integration, set `includeLocalVariable: true` in the SDK configuration.
37
+
This integration captures local variables to exception frames. To enable capturing local variables via the integration, set `includeLocalVariable` to `true` in the SDK configuration.
38
38
39
39
```JavaScript
40
40
Sentry.init({
@@ -44,12 +44,22 @@ Sentry.init({
44
44
45
45
The local variables integration only captures local variables from application code (`in_app = true`). Frames of a stacktrace originating from `node_modules` will not have local variables attached to them.
46
46
47
-
<Alertlevel="warning">
47
+
<Alertlevel="warning"title="Minified Variables">
48
48
49
49
Minified local variable names attached to exception frames can't be unminified by Sentry at this time. There's an [active proposal](https://github.com/tc39/source-map/blob/main/proposals/scopes.md) for the sourcemaps spec that will add this capability.
50
50
51
51
</Alert>
52
52
53
+
<Alertlevel="warning"title="Incompatibility with Debuggers">
54
+
55
+
Setting `includeLocalVariables` to `true` can and will interfere with other debugger sessions attached to the process.
56
+
The integration works by briefly pausing execution on thrown exceptions, to collect variables in the scope and then instantly resuming it.
57
+
You may therefore examine your breakpoints being skipped over when this integration is active.
58
+
59
+
It is recommended to set `includeLocalVariables` to `false` when intending to use other debugger sessions.
0 commit comments