-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LocalVariables integration - debugger no longer works when enabled #13414
Comments
I'm hoping with the digging I've done to root cause these it shouldn't require a high effort repro example -- but if it's needed I can create one (it'll just take me some time that I don't immediately have). |
Hey @Bruno-DaSilva thanks for writing in! We'll look into your issue next week as this week is Hackweek at Sentry (see #13421). |
@Bruno-DaSilva your assumption is correct in that the integration immediately continues execution when a breakpoint is hit.
|
I think the main issue is that this would only work when using When the Chrome debugger is attached, it auto sends some commands which we might be able to detect from the responses that are sent to all connected clients. |
I wonder if we could listen for new sessions to connect in any way and then dynamically disable the integration. 🤔 |
It's likely possible, I just can't find a specific debugger event for new debug connections. We'd have to watch for responses that indicate a new connection has been made and these are specific responses to what the debugger sends on connection. This can vary slightly depending on how the debugger is configured. |
In the worst case, could we have some sort of manual trigger to enable/disable the LocalVariables integration on the fly? In a non-local workflow we perform some extra manual steps when we are eg. connecting to debug a pod in kubernetes (namely |
We could check |
You mean disable the integration outright at startup if it sees the |
Yep, that would be the easiest solution. There is a |
A PR closing this issue has just been released 🚀This issue was referenced by PR #14643, which was included in the 8.45.0 release. |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/node
SDK Version
8.26.0
Framework Version
Node v20.12.2
Link to Sentry event
No response
Reproduction Example/SDK Setup
Steps to Reproduce
includeLocalVariables: true
Expected Result
Process is paused, and can step into/over/resume the execution
Actual Result
Process appears to pause for a millisecond and then immediately resumed.
I believe this is because the LocalVariablesAsync integration will resume all breakpoints immediately.
This does not appear to be documented anywhere. Is this expected behaviour?
The text was updated successfully, but these errors were encountered: