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
fix(debugger): abort on unknown Debugger.paused reason (#6901)
When the `Debugger.paused` event is emitted in the debugger
implementation, it's expected to be because a breakpoint is hit. In that
case the events `params.reason` will be set to `other`.
However, if the inspected thread experiences an OOM event,
`Debugger.paused` will also be emitted with `params.reason` set to `OOM`.
There might also be other situations where `params.reason` is different
from `other`. In all these situations we should abort and close the
debugger.
In the case of an OOM event in the inspected thread, exiting the
debugging thread, will also stop the debugging session, and this will
allow the inspected thread to properly exit with an OOM error. If we
didn't do this we would essentially swallow the OOM error.
0 commit comments