await testStepping("", stepTwice, "Step over on the outermost frame");
await testStepping("blackboxed", stepTwice, "Step over with blackboxing");
await testStepping("", stepOut, "Step out on the outermost frame");
await testStepping("blackboxed", stepOut, "Step out with blackboxing");
commands.scriptCommand.execute(`(async function () { const p = Promise.resolve(); const p2 = p.then(() => {
debugger; return"async stepping!";
});
debugger;
await p; const result = await p2; return result;
})();
`);
await waitForEvent(threadFront, "paused");
await stepOver(threadFront);
await stepOver(threadFront); const step = await stepOut(threadFront);
await resume(threadFront); Assert.equal(step.frame.where.line, 9, "Step out of promise into async fn");
})
);
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.