Bug 197977
| Summary: | Web Inspector: Implement inline breakpoints. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Bates <dbates> |
| Component: | Web Inspector | Assignee: | Devin Rousso <hi> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | hi, inspector-bugzilla-changes, webkit-bug-importer, zhifei_fang |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 12 | ||
| Hardware: | All | ||
| OS: | All | ||
| Bug Depends on: | |||
| Bug Blocks: | 244646, 244647 | ||
Daniel Bates
Seen here <https://hacks.mozilla.org/2019/05/faster-smarter-javascript-debugging-in-firefox/>. We should add the ability to set an "inline breakpoint", not just per line breakpoints but finer grained breakpoints in the line especially given in JavaScript multiple expressions may be written in the same line.
Example:
Window.settimeout(() => {...}, 200);
And I want to set a breakpoint in the callback function or at the start of the callback. Can't do that now as far as I know at most can set breakpoint for settimeout.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Daniel Bates
And Chrome dev tools has them too: <https://umaar.com/dev-tips/129-inline-breakpoints/>
Radar WebKit Bug Importer
<rdar://problem/50903783>
Devin Rousso
Pull request: https://github.com/WebKit/WebKit/pull/3696
EWS
Committed 254015@main (91f7b27a2c24): <https://commits.webkit.org/254015@main>
Reviewed commits have been landed. Closing PR #3696 and removing active labels.