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
That's not a great assumption to make for something that's not opt-in. It makes the VS Code debugger unusable for any library that doesn't have an entirely pure toString, like preact/signals where it calls the getter for the value prop which on Computed signals will automatically recompute any value the debugger comes across.
connor4312
added
under-discussion
Issue is under discussion for relevance, priority, approach
and removed
bug
Issue identified by VS Code Team member as probable bug
labels
May 20, 2024
Describe the bug
If a object has a
toString
method that produces side effects, the debugger triggers those side effects in a non observable way.Seems related to #1296
To Reproduce
Place a breakpoint in the following code:
By the time the debugger stops at the breakpoint (before log should run), one log has already happened and the counter has increased.
VS Code Version: 1.89.1
The text was updated successfully, but these errors were encountered: