Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8894f27 commit 4417f99Copy full SHA for 4417f99
src/debug-agent.cc
@@ -120,7 +120,7 @@ bool Agent::Start(int port, bool wait) {
120
121
122
void Agent::Enable() {
123
- v8::Debug::SetMessageHandler(MessageHandler);
+ v8::Debug::SetMessageHandler(parent_env()->isolate(), MessageHandler);
124
125
// Assign environment to the debugger's context
126
// NOTE: The debugger context is created after `SetMessageHandler()` call
@@ -135,7 +135,7 @@ void Agent::Stop() {
135
return;
136
}
137
138
- v8::Debug::SetMessageHandler(nullptr);
+ v8::Debug::SetMessageHandler(parent_env()->isolate(), nullptr);
139
140
// Send empty message to terminate things
141
EnqueueMessage(new AgentMessage(nullptr, 0));
0 commit comments