Show the precise location and column where the debugger paused
Categories
(DevTools :: Debugger, enhancement)
Tracking
(firefox139 fixed)
| 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 | ||
Comment 1•1 year ago
|
||
Updated•1 year ago
|
| Assignee | ||
Comment 2•1 year ago
|
||
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.
| Assignee | ||
Comment 3•1 year ago
|
||
This is now redundant with the new paused caret UI and can be confusing.
| Assignee | ||
Comment 4•1 year ago
|
||
We were using the same background color for the hovered token and the paused line.
Comment 5•1 year ago
|
||
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.
Comment 6•1 year ago
|
||
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.
| Assignee | ||
Comment 7•1 year ago
|
||
Comment 9•1 year ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/b547efafb342
https://hg.mozilla.org/mozilla-central/rev/044c52a63277
Updated•1 year ago
|
Description
•