Closed Bug 1953964 Opened 1 year ago Closed 1 year ago

Show the precise location and column where the debugger paused

Categories

(DevTools :: Debugger, enhancement)

enhancement

Tracking

(firefox139 fixed)

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(3 files, 2 obsolete files)

For now, we don't highlight precisely the column of the paused location.
We do highlight the first token after the paused location, but that isn't super explicit.
It would be nice to have something shown at the precise column where the debugger is paused.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

In mapStateToProps, for CM5, we used to wait for the source to be actually rendered in CodeMirror via hasDocument call.
This is actually a miss for CM6 as we may try to render the pause location UIs while we are still on the "Loading..." text in CodeMirror.
Also, hasDocument was brittle as this isn't a selector and may not necessarily trigger a state change.
So start using viewport selector as it should ultimately be updated and trigger mapStateToProps whenever it is defined.

Also tweak the source editor to ensure returning a viewport only when an actual source is displayed,
and return null when showing "Loading..." as well as error messages.

This is now redundant with the new paused caret UI and can be confusing.

We were using the same background color for the hovered token and the paused line.

Blocks: 1956753

Comment on attachment 9474628 [details]
Bug 1953964 - [devtools] Prevent showing the pause location information until the related source is actually displayed.

Revision D243089 was moved to bug 1957352. Setting attachment 9474628 [details] to obsolete.

Attachment #9474628 - Attachment is obsolete: true

Comment on attachment 9474630 [details]
Bug 1953964 - [devtools] Fix highlighting the hovered token on the paused line.

Revision D243091 was moved to bug 1957343. Setting attachment 9474630 [details] to obsolete.

Attachment #9474630 - Attachment is obsolete: true
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b547efafb342 [devtools] Stop highlighting the next token after the paused location. r=devtools-reviewers,nchevobbe https://hg.mozilla.org/integration/autoland/rev/044c52a63277 [devtools] Show the precise location and column where the debugger paused. r=devtools-reviewers,nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: