Closed Bug 1537597 Opened 5 years ago Closed 5 years ago

Unexpectedly getting the second breakpoint enabled on line

Categories

(DevTools :: Debugger, enhancement, P3)

enhancement

Tracking

(firefox68 fixed)

RESOLVED FIXED
Firefox 68
Tracking Status
firefox68 --- fixed

People

(Reporter: jlast, Assigned: jlast)

References

Details

Attachments

(1 file)

Steps:

  1. Open Editor/Tabs.js
  2. Find the line in updateHiddenTabs that has hiddenTabs.find(tab => tab.id == selectedSource.id)
  3. Click to add a breakpoint

AR:
The second column breakpoint is enabled.

https://user-images.githubusercontent.com/132260/53923596-ba035f80-402d-11e9-8bd7-ac6e0c386aec.png

ER:
The first one would be enabled.

The cause of this is most likely that the second breakpoint is actually the first one, in the generated file. We are likely sorting based on generated position, rather than based on the order for the file you are actually viewing.

It seems wrong that the breakpoints are ordered differently in this case, so I'll be filing a separate bug for that, perhaps the sourcemap is just bad in this case. Filed in #8093

CC https://github.com/firefox-devtools/debugger/issues/8092

Priority: -- → P3
Has STR: --- → yes
Pushed by jlaster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/88ab54858398
Unexpectedly getting the second breakpoint enabled on line. r=loganfsmyth
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 68
Assignee: nobody → jlaster
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: