// Connect two thread actors, debugging the same debuggee, and both being paused. const firstClient = new DevToolsClient(DevToolsServer.connectPipe());
await firstClient.connect(); const { threadFront: firstThreadFront } = await attachTestThread(
firstClient,
GLOBAL_NAME
);
await firstThreadFront.interrupt();
// Then check how concurrent resume work
let result; try {
result = await firstThreadFront.resume();
} catch (e) { Assert.ok(e.includes("wrongOrder"), "rejects with the wrong order");
} Assert.ok(!result, "no response");
result = await secondThreadFront.resume(); Assert.ok(true, "resumed as expected");
await firstThreadFront.resume();
Assert.ok(true, "resumed as expected");
await firstClient.close();
await finishClient(secondClient);
});
¤ Dauer der Verarbeitung: 0.15 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.