mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Debugger source send by client feature
Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>
This commit is contained in:
parent
a9a41ff5f0
commit
e52c7d1b00
15 changed files with 204 additions and 14 deletions
|
|
@ -645,6 +645,17 @@ int main(int argc, char* argv[])
|
|||
context->initDebugger(nullptr);
|
||||
continue;
|
||||
}
|
||||
if (strcmp(argv[i], "--debugger-wait-source") == 0) {
|
||||
StringRef* sourceName;
|
||||
StringRef* clientSourceRef = context->getClientSource(&sourceName);
|
||||
if (clientSourceRef) {
|
||||
if (!evalScript(context, clientSourceRef, sourceName, false, false))
|
||||
return 3;
|
||||
runShell = false;
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
} else { // `-option` case
|
||||
if (strcmp(argv[i], "-e") == 0) {
|
||||
runShell = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue