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