Bug 46671 - Would be nice to have something equivalent to C preprocess #line directive for .js source files.
Summary: Would be nice to have something equivalent to C preprocess #line directive fo...
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-27 16:41 PDT by Gavin Barraclough
Modified: 2014-12-12 14:08 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gavin Barraclough 2010-09-27 16:41:42 PDT
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.
Comment 1 Timothy Hatcher 2010-09-27 16:45:48 PDT
Why would you use a HTML comment in a JS file? ;)
Comment 2 Gavin Barraclough 2010-09-27 16:49:19 PDT
This is a valid comment format in ECMAscript. :-(
Comment 3 Timothy Hatcher 2010-09-27 16:59:20 PDT
Interesting… never knew.
Comment 4 Brian Burg 2014-12-12 14:08:32 PST
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.