Open Bug 1327600 Opened 8 years ago Updated 2 years ago

No way to pretty-print and debug Loops (e.g. "for" and "while") if brackets {} aren't used

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: arni2033, Unassigned)

References

(Blocks 1 open bug, )

Details

>>>   My Info:   Win7_64, Nightly 48, 32bit, ID 20160423030220
STR_1:
1. Open url in the form above
2. Open debugger, pretty-print script, set breakpoint at line with "console.log"
3. Click on the page
4. Press F11 in debugger

AR:  216 messages in console
ER:  Only 1 message - "000"
No longer blocks: 1277113
Component: Untriaged → Developer Tools: Canvas Debugger
Component: Developer Tools: Canvas Debugger → Developer Tools: Debugger
Currently I hit a different bug when I try this -- I can't even set a breakpoint on that line.
Priority: -- → P3
Product: Firefox → DevTools
Priority: P3 → P5

This is currently still an issue.

Blocks: dbg-72

I can also reproduce the reported bug

Currently I hit a different bug when I try this -- I can't even set a breakpoint on that line.

BP works for me (I can set one on line 1)

The code after pretty printing should look something like as follows:

function () {
    for (i = 0; i < 6; i++)
        for (j = 0; j < 6; j++)
            for (k = 0; k < 6; k++)
                console.log('' + i + j + k);
}

Honza

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.