Uh oh!
There was an error while loading. Please reload this page.
inspector: allow opening inspector when NODE_V8_COVERAGE is set - #46113
Conversation
868efc8 to
44f774cCompareNODE_V8_COVERAGE is setNODE_V8_COVERAGE is setMoLow
commented
Jan 5, 2023
CC @nodejs/inspector |
nodejs-github-bot
commented
Jan 6, 2023
bnoordhuis
commented
Jan 7, 2023
I kind of feel this is more a hack or workaround than a proper fix, possibly with undesirable side effects.
Maybe the Lines 942 to 946 in 513c151 Or maybe it's sometimes needed - but in this case it gives the wrong behavior. |
CMIIW, code coverage creates its own inspector session but doesn't start the agent thread while diff --git a/src/inspector_js_api.cc b/src/inspector_js_api.cc
index 3595536c78..1602faf1bd 100644
--- a/src/inspector_js_api.cc+++ b/src/inspector_js_api.cc@@ -273,7 +273,7 @@ static void RegisterAsyncHookWrapper(const FunctionCallbackInfo<Value>& args) {
void IsEnabled(const FunctionCallbackInfo<Value>& args) {
Environment* env = Environment::GetCurrent(args);
- args.GetReturnValue().Set(InspectorEnabled(env));+ args.GetReturnValue().Set(env->inspector_agent()->IsListening());
}
void Open(const FunctionCallbackInfo<Value>& args) { |
44f774c to
4d2eca7CompareMoLow
commented
Jan 28, 2023
thanks @cola119! I have pushed your suggestion |
nodejs-github-bot
commented
Jan 29, 2023
nodejs-github-bot
commented
Jan 29, 2023
Landed in 7b4cc58 |
Fixes: #46110