Bug 197977 - Web Inspector: Implement inline breakpoints.
Summary: Web Inspector: Implement inline breakpoints.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: Safari 12
Hardware: All All
: P2 Normal
Assignee: Devin Rousso
URL:
Keywords: InRadar
Depends on:
Blocks: 244646 244647
  Show dependency treegraph
 
Reported: 2019-05-16 23:44 PDT by Daniel Bates
Modified: 2022-08-31 17:36 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2019-05-16 23:44:02 PDT
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.
Comment 1 Daniel Bates 2019-05-16 23:49:25 PDT
And Chrome dev tools has them too: <https://umaar.com/dev-tips/129-inline-breakpoints/>
Comment 2 Radar WebKit Bug Importer 2019-05-17 13:33:41 PDT
<rdar://problem/50903783>
Comment 3 Devin Rousso 2022-08-26 00:43:36 PDT
Pull request: https://github.com/WebKit/WebKit/pull/3696
Comment 4 EWS 2022-08-31 16:28:18 PDT
Committed 254015@main (91f7b27a2c24): <https://commits.webkit.org/254015@main>

Reviewed commits have been landed. Closing PR #3696 and removing active labels.