Closed Bug 1537757 Opened 5 years ago Closed 5 years ago

Breakpoint line marker is misaligned

Categories

(DevTools :: Debugger, defect, P2)

defect

Tracking

(firefox68 fixed)

RESOLVED FIXED
Firefox 68
Tracking Status
firefox68 --- fixed

People

(Reporter: Honza, Assigned: jlast)

References

Details

Attachments

(3 files, 1 obsolete file)

Attached image image.png

STR:

  1. Get the attached React App
  2. Run yarn install && yarn start
  3. Load localhost:3000
  4. Open src/App.js
  5. Create BP on line 7 console.trace("render");
  6. Right click on that line and jump to generated location
  7. Remove the breakpoint in generated file, right click and jump to original location
  8. The breakpoint marker in the BP gutter is misaligned -> BUG

The breakpoint shouldn't be there at all

See also the attached screenshot

Note that I had to close all source tabs in the Debugger panel and restart the Browser to be able to repro this again.

Honza

Attached file app.rar (obsolete) —

Another thing here: when jumping to generated location, line under the console.trace("render"); is highighted. Directly the line console.trace("render"); should be highlighted. Let me know if you want me to file another bug for this.

Honza

I'm not sure how to download and open app.rar? Would it be possible to host the app with glitch or https://codesandbox.io/?

Attachment #9052563 - Attachment is obsolete: true

Changed to zip

Honza

Here is a similar example --

  1. go to https://8k0y15nvj8.codesandbox.io/
  2. add a breakpoint in https://p798ppq8mj.codesandbox.io/src/index.js (mapped)
  3. switch to the generated location
  4. remove the breakpoint
  5. switch to the original location

http://g.recordit.co/mFUeVLAEkg.gif

I was able to reproduce. Switching tabs doesn't fix the issue, though if you click the line gutter again, the breakpoint is put back in the correct place.

Priority: -- → P2

Looks like componentWillUnmount from Breakpoint.js isn't running when swapping back to the original location, thus the new-breakpoint class isn't removed from the document.

Has STR: --- → yes
Pushed by jlaster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/03035705f087
Breakpoint line marker is misaligned. r=davidwalsh
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: