Bug 291309
| Summary: | Web Inspector: Debugger: add a way to step over `await` as though it was sync code | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Devin Rousso <hi> |
| Component: | Web Inspector | Assignee: | Devin Rousso <hi> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | inspector-bugzilla-changes, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
| Bug Depends on: | |||
| Bug Blocks: | 291670 | ||
Devin Rousso
when debugging async code with `await` it's often more desirable to follow what's written in code (i.e. as if the `await` didnt exist) instead of the literal execution flow, especially since with `await` that can sometimes mean execution just stops
for example, continually "Step Over" from the `debugger` should (eventually) pause at the `"after"` instead of just nothing
```
(async function() {
debugger;
console.log("before");
await (async function() { return 42; })();
console.log("after");
})()
```
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Devin Rousso
Pull request: https://github.com/WebKit/WebKit/pull/43834
EWS
Committed 293628@main (6eceba582581): <https://commits.webkit.org/293628@main>
Reviewed commits have been landed. Closing PR #43834 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/149133320>