Debugger pending breakpoints

Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
This commit is contained in:
bence gabor kis 2020-04-16 14:15:04 +02:00 committed by Hyukwoo Park
commit a88023c9c2
13 changed files with 364 additions and 10 deletions

View file

@ -451,6 +451,9 @@ ScriptParser::InitializeScriptResult ScriptParser::initializeScriptWithDebugger(
if (m_context->debugger() != nullptr && m_context->debugger()->enabled()) {
recursivelyGenerateByteCode(topCodeBlock);
m_context->debugger()->sendType(Debugger::ESCARGOT_MESSAGE_PARSE_DONE);
if (m_context->debugger()->pendingWait()) {
m_context->debugger()->waitForResolvingPendingBreakpoints();
}
}
GC_enable();