Bug 46671
Summary: | Would be nice to have something equivalent to C preprocess #line directive for .js source files. | ||
---|---|---|---|
Product: | WebKit | Reporter: | Gavin Barraclough <barraclough> |
Component: | Web Inspector (Deprecated) | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED INVALID | ||
Severity: | Normal | CC: | ddkilzer |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 |
Gavin Barraclough
Maybe a special comment, something like:
<!-- line=myfile.js:20 >
To set the reported filename / line number in the inspector. This could be particularly useful when debugging large source files, composed from a concatenation of smaller ones.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Timothy Hatcher
Why would you use a HTML comment in a JS file? ;)
Gavin Barraclough
This is a valid comment format in ECMAscript. :-(
Timothy Hatcher
Interesting… never knew.
Brian Burg
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests.
Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.