Open Bug 1327705 Opened 7 years ago Updated 1 year ago

Debugger can't prettify scripts from sourcemap

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: arni2033, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

>>>   My Info:   Win7_64, Nightly 49, 32bit, ID 20160526082509
STR_1:
1. Open the following "data:" url:
data:text/html,<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>

2. Open debugger
3. Prettify script "jquery.js" (sic)


STR_2:
1. Download and extract attached "testcase 1" in a folder with a short full name
2. Open .html file
3. Open debugger
4. Prettify script "jquery.js" (sic)


AR:  Prettify button switches to "enabled" state, but nothing happens with the script

ER:  Either X or Y
 X) Script should be prettified
 Y) Prettify button should be in "enabled" state and also disabled. That's the only logical option if
    Firefox developers don't admit admit the possibility that script from sourcemap isn't prettified
No longer blocks: 1277113
Component: Untriaged → Developer Tools: Canvas Debugger
Component: Developer Tools: Canvas Debugger → Developer Tools: Debugger
Blocks: source-maps
Product: Firefox → DevTools
Priority: -- → P3
Severity: normal → S3

This is a known issue as pretty-print does generate its own sourcemap, we would have to somehow juggle the original sourcemap and the one from pretty-print, which would be quite complex
Or, pretty-print could accept the sourcemap original mapping and alter it somehow (sounds complex too)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: