Breakpoint line marker is misaligned
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: Honza, Assigned: jlast)
References
Details
Attachments
(3 files, 1 obsolete file)
STR:
- Get the attached React App
- Run
yarn install && yarn start
- Load
localhost:3000
- Open src/App.js
- Create BP on line 7
console.trace("render");
- Right click on that line and jump to generated location
- Remove the breakpoint in generated file, right click and jump to original location
- 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
Reporter | ||
Comment 1•5 years ago
|
||
Reporter | ||
Comment 2•5 years ago
|
||
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
Assignee | ||
Comment 3•5 years ago
|
||
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/?
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 4•5 years ago
|
||
Reporter | ||
Comment 5•5 years ago
|
||
Changed to zip
Honza
Assignee | ||
Comment 6•5 years ago
|
||
Here is a similar example --
- go to https://8k0y15nvj8.codesandbox.io/
- add a breakpoint in
https://p798ppq8mj.codesandbox.io/src/index.js (mapped)
- switch to the generated location
- remove the breakpoint
- switch to the original location
Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
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.
Updated•5 years ago
|
Comment 8•5 years ago
|
||
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.
Assignee | ||
Comment 9•5 years ago
|
||
Updated•5 years ago
|
Comment 10•5 years ago
|
||
Pushed by jlaster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/03035705f087 Breakpoint line marker is misaligned. r=davidwalsh
Comment 11•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•