Inline breakpoints retained while file changed
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(firefox69 fixed)
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: Harald, Assigned: jlast)
References
(Blocks 1 open bug)
Details
(Whiteboard: [debugger-mvp])
Attachments
(5 files)
What were you doing?
- I set a breakpoint in the
render
function in https://firefox-devtools-example-babel-typescript.glitch.me/ - Edited the JSX and broke it down into multiple lines
- Refreshed the page
What happened?
Breakpoints spilled all over the old line.
What should have happened?
Remove invalid columns, as the old ones don't apply at all.
Anything else we should know?
I have not tried reproducing it, just filing to have it captured. STR might be faulty.
Assignee | ||
Comment 1•5 years ago
|
||
I think this is a dupe of bug 1533547. I'll look a bit more soon.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
This is a bug with sourcemaps, we should likely file this bug against babel's jsx plugin.
CC Logan, do you know the right place to report this bug?
Assignee | ||
Comment 3•5 years ago
|
||
Hmm, here it is in a repl w/ source maps
This is not exactly what i expected as the function expression/calls were mapped correctly. Thoughts?
Assignee | ||
Comment 4•5 years ago
|
||
okay, after looking into it this feels like an issue with webpack.
- babel's maps look good in the link above
- the breakpoint positions in the generated code look good
- my guess is the minifier mangled the locations
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
Chrome has a similar issue, but they do not show inline breakpoints that are out of range on the line. That sounds like a reasonable option here because they certainly are confusing.
Assignee | ||
Comment 7•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
Assignee | ||
Comment 9•5 years ago
|
||
Assignee | ||
Comment 10•5 years ago
|
||
This is what it looks like after the fix.
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Pushed by jlaster@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/865ab825ed58 filter breakpoints to the right of the line. r=davidwalsh
Comment 12•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•