Closed Bug 1277780 Opened 8 years ago Closed 7 years ago

display source map variable names in Developer Tools

Categories

(DevTools :: Debugger, defect, P5)

46 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 856875

People

(Reporter: burashka-lcme, Unassigned)

Details

Attachments

(1 file)

Attached file forFF.zip
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 2016042500

Steps to reproduce:

1) Open HTML-file with minified JavaScript.
2) Debug minified JavaScript.



Actual results:

Minified variable names are shown (ex: `a`, `c`, `e`, etc) instead of original source names.


Expected results:

Shown original source names.
Component: Untriaged → Developer Tools: Debugger
James, didn't we already have a bug for this?

If not, this seems like it would be of some importance, so tentatively marking as P2.
Flags: needinfo?(jlong)
Priority: -- → P2
(In reply to Eddy Bruel [:ejpbruel] from comment #1)
> James, didn't we already have a bug for this?
> 
> If not, this seems like it would be of some importance, so tentatively
> marking as P2.

Source maps don't even have this feature, I don't think. You must be thinking of a different bug. Sourcemaps do not encode and scoping information or names of original variables, so I think this bug is invalid.
Flags: needinfo?(jlong)
Confirmed with fitzgen that the sourcemaps specification is not capable of this.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
It's not impossible. Chrome DevTools implemented it: https://bugs.chromium.org/p/chromium/issues/detail?id=327092. In experimental functionality, but stability works.
Status: RESOLVED → UNCONFIRMED
Resolution: WONTFIX → ---
It's hard to tell what they are doing, but it looks like they are manually trying to re-sourcemap variable names by finding the definition location and sourcemapping that expression? We would rather improve the sourcemap spec. This isn't something we're going to do now.
Priority: P2 → P5
I discovered that this is a dup.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago7 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: