-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Purpose of double Debugger.setPauseOnExceptions #41795
Comments
Hm, I don't think this is on purpose. I assume that the first got copied from somewhere and then I later added the 2nd line without looking properly. Nice find! I assume the first one could just be removed. |
It looks like pauseOnExceptionState always 'none' in second invocation. In any case from protocol point of view there is no sense to call Debugger.setPauseOnExceptions twice. Implementation of this method just changes a flag inside V8. |
@ak239 Thanks for confirming! Btw, we don't reset it before connecting/restarting. So it might not be |
I think we should support this case on backend side. When at least one protocol client requests pause on all exceptions - debugger should issue Debugger.paused event for each exception, if at least one client request pause on uncaught exception - issue event for uncaught exception. |
Fixed link, edited: https://bugs.chromium.org/p/chromium/issues/detail?id=1246881 |
New location: node/lib/internal/debugger/inspect_repl.js Lines 1125 to 1128 in 4fbe9e5
|
The fix here may be to just remove the first call with the hard-coded |
Removes the duplicate call of setPauseOnException() inside initAfterStart() Fixes: nodejs#41795
Removes the duplicate call of setPauseOnException() inside initAfterStart(). Fixes: nodejs#41795
Removes the duplicate call of setPauseOnException() inside initAfterStart(). Fixes: nodejs#41795 PR-URL: nodejs#41838 Reviewed-By: Jan Krems <jan.krems@gmail.com>
Removes the duplicate call of setPauseOnException() inside initAfterStart(). Fixes: nodejs#41795 PR-URL: nodejs#41838 Reviewed-By: Jan Krems <jan.krems@gmail.com>
Hi
During the init phase: https://github.com/nodejs/node-inspect/blob/master/lib/internal/inspect_repl.js#L1041
What's the purpose of doing
Debugger.setPauseOnExceptions
twice?The text was updated successfully, but these errors were encountered: