import * as repl from "repl"; const ds = initScripting(); console.log("Interactive scripting session started."); console.log("Debugger scripting object is bound to 'ds'."); console.log("Use Ctrl+D plus Return to exit.") await new Promise((resolve, reject) => { try { const scriptRepl = repl.start({ prompt: ">> " }); scriptRepl.context["ds"] = ds; scriptRepl.on("exit", () => { ds.shutdown(); resolve(); }); } catch (e) { reject(e); } });