Improve debug line highlight for arrays and objects.
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox69 fixed)
| Tracking | Status | |
|---|---|---|
| firefox69 | --- | fixed |
People
(Reporter: bmiriam1230, Assigned: bmiriam1230)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
Steps to reproduce:
Steps to reproduce:
- Go to https://array-obj-highlighting.glitch.me/
- Set breakpoint on line 2.
- Pause on breakpoint.
- Repeat but set breakpoint on line 13 to test with an object.
- Repeat on lines 7 and 18 to view examples with column breakpoints.
Actual results:
Only the opening array bracket or object brace is highlighted. See attachment.
Expected results:
This bug was caused by recent changes to the highlight rules for debug lines which highlight from the beginning of the token starting directly after the breakpoint/column breakpoint, to the end of the token:
https://bugzilla.mozilla.org/show_bug.cgi?id=1537740
Jason proposed highlighting from the opening brace/bracket to the end of the line in the case of arrays and objects which is easier to see and understand. The change also creates parity with Chrome's highlight behavior.
Pushed by jlaster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c2e033313872 For arrays and objects, highlight from token to end of line when paused.
Comment 3•2 years ago
|
||
| bugherder | ||
Description
•