Bug 241495

Summary: Web Inspector: Ignore blocks, function or line of code in Sources when debugging
Product: WebKit Reporter: Karl Dubost <karlcow>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: inspector-bugzilla-changes, rcaliman, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: All   
OS: All   

Karl Dubost
Reported 2022-06-09 17:08:34 PDT
Summary: Ignore blocks of code and/or logical functions in Sources tab Steps To Reproduce: 1. Open a website 2. Open Web Inspector on the Sources tab 3. Put a breaking point 4. Use Step by step until you reach an area with a for loop with an Array with a lot of values. Results: Usually, you would need to set a new breakpoint after the for loop. Then click on Resume to pass the loop. But with a contextual menu on the block code, it would be cool to choose to set a flag to ignore this specific block, or line or function, The step by step would then jump after the block, line or function (still executing it). That would allow to be able once the page is reloaded to not have to reset again a breaking point for the specific block we want to jump. rdar://94686485
Attachments
Razvan Caliman
Comment 1 2025-05-28 05:16:11 PDT
Looks like https://bugs.webkit.org/show_bug.cgi?id=275552 added the underlying support for this. That was used to automatically blackbox sourcemaps: https://bugs.webkit.org/show_bug.cgi?id=277668 There is no user interface for specifying source ranges, but it seems like if it were added, it could hook into the existing logic.
Note You need to log in before you can comment on or make changes to this bug.