Closed Bug 1261475 Opened 8 years ago Closed 5 years ago

Debugger breaks if I try to pretty-print anonymous script

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(firefox48 affected)

RESOLVED WONTFIX
Tracking Status
firefox48 --- affected

People

(Reporter: arni2033, Unassigned)

References

()

Details

>>>   My Info:   Win7_64, Nightly 48, 32bit, ID 20160330030326
This is quite old, actually

STR:
0. Copy this line to clipboard (without "> "):
> function(){var a = Date.now(); if (a==0) a=0; else a=1; return a==0?"b":"c";}
1. Open "data:" URL in the form above
2. Open Debugger, set breakpoint at line 6 "return f;", reload the page.
3. In variables sidebar, set f's value to the string from step 0
4. Press F11 ("Step In") 4 times to enter the anonymous script
5. Click pretty-print button
 [you can stop reading - there's already a bug]
6. Click "Step In" button
7. Click "Resume" button

AR:  After Step 5 anonymous "scripto" isn't pretty-printed. In Steps 6-7 no visible action.
ER:  After Step 5 "scripto" should be pretty-printed. In Steps 6-7 Debugger should work

Note:  You can accidentally run into bug 1211514
Assigning P2 to this.
Priority: -- → P2
Product: Firefox → DevTools

The new debugger UI does not support pretty printing URL-less scripts

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.