inspector: patch C++ debug options instead of process._breakFirstLine#26602
inspector: patch C++ debug options instead of process._breakFirstLine#26602joyeecheung wants to merge 2 commits intonodejs:masterfrom
Conversation
Instead of patching process._breakFirstLine to inform the JS land to wait for the debugger, check that the JS land has not yet serialized the options and then patch the debug options from C++. The changes will be carried into JS later during option serialization.
|
This seems like something that should be handled during options parsing, tbh, unless there’s any reason not to do that? I’m not really a fan of adding the |
|
@addaleax The states here are determined when the
|
|
hmm..I guess we could also normalize the child's debug options in |
|
Well, looks like we can't patch the options in |
@joyeecheung Can we rather check that then? That the inspector agent is not started during/after pre-execution? I’d like to be able to call |
|
@addaleax I could remove the check in |
|
Removed the check in |
|
Landed in 97a919b |
Instead of patching process._breakFirstLine to inform the JS land to wait for the debugger, check that the JS land has not yet serialized the options and then patch the debug options from C++. The changes will be carried into JS later during option serialization. PR-URL: #26602 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Instead of patching process._breakFirstLine to inform the JS land to wait for the debugger, check that the JS land has not yet serialized the options and then patch the debug options from C++. The changes will be carried into JS later during option serialization. PR-URL: #26602 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Instead of patching process._breakFirstLine to inform the JS land to wait for the debugger, check that the JS land has not yet serialized the options and then patch the debug options from C++. The changes will be carried into JS later during option serialization. PR-URL: #26602 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Instead of patching process._breakFirstLine to inform the JS land
to wait for the debugger, check that the JS land has not yet
serialized the options and then patch the debug options from C++.
The changes will be carried into JS later during option serialization.
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes