Bug 241495
| Summary: | Web Inspector: Ignore blocks, function or line of code in Sources when debugging | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Karl Dubost <karlcow> |
| Component: | Web Inspector | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Razvan Caliman
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.