[Webkit-unassigned] [Bug 42739] New: Web Inspector: should detect JS files/functions/lines which haven't been executed
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 21 03:35:00 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=42739
Summary: Web Inspector: should detect JS files/functions/lines
which haven't been executed
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Enhancement
Priority: P2
Component: Web Inspector
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ekamenskaya at chromium.org
CC: timothy at apple.com, rik at webkit.org, keishi at webkit.org,
pmuellr at yahoo.com, joepeck at webkit.org,
pfeldman at chromium.org, yurys at chromium.org,
bweinstein at apple.com
In Scripts panel there should be button (or option in context menu, or keyboard shortcut) which allows to somehow highlight all functions or lines of code which haven’t been executed.
Would be great if it worked not as in Page Speed (which shows all functions not executed on page onload), but as in JsCoverage http://siliconforks.com/jscoverage/ (which also makes measurement after page onload; for example, if you press a button on a page and some JS code is executed, it will be displayed as executed by the tool).
After unused functions/lines of javascript are shown, user can delete them using editing functionality in Scripts panel.
This may be extremely useful when website contains huge js files, and you want to debug it. Typically by this way you can impressively reduce JS in size and make it more visible and clear for further debugging.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list