Closed Bug 1503436 Opened 6 years ago Closed 6 years ago

Adding a breakpoint w/ column offset to a minified file can pause many times in unexpected places

Categories

(DevTools :: Debugger, enhancement)

enhancement
Not set
normal

Tracking

(firefox65 fixed)

RESOLVED FIXED
Firefox 65
Tracking Status
firefox65 --- fixed

People

(Reporter: loganfsmyth, Assigned: loganfsmyth)

References

Details

Attachments

(1 file)

Originally reported in https://github.com/devtools-html/debugger.html/issues/5519

The issue is that our logic for taking the closest offset doesn't account for the fact that a single line may have many Debugger.Script objects, and currently adds breakpoints to the first/last offsets for _all_ of these scripts, which is much too aggressive. It should only use the script closest to the column.
Pushed by lsmyth@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/792fd0ab86d1
Only add breakpoints to first/last offset of script if column is directly in script. r=jlast
Depends on: 1504358
Pushed by lsmyth@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/177ecd76cc15
Only add breakpoints to first/last offset of script if column is directly in script. r=jlast
Flags: needinfo?(lsmyth)
https://hg.mozilla.org/mozilla-central/rev/177ecd76cc15
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: