Closed
Bug 1008380
Opened 11 years ago
Closed 10 years ago
Can't remove a breakpoint after it slides to a new line
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(firefox41 fixed)
RESOLVED
FIXED
Firefox 41
Tracking | Status | |
---|---|---|
firefox41 | --- | fixed |
People
(Reporter: vporof, Assigned: ejpbruel)
References
(Blocks 1 open bug)
Details
(Whiteboard: [polish-backlog])
Attachments
(2 files)
(deleted),
image/gif
|
Details | |
(deleted),
patch
|
jlong
:
review+
|
Details | Diff | Splinter Review |
STR:
1. Go to http://todomvc.com/architecture-examples/backbone/
2. Open debugger
3. Add a breakpoint on line 27 of app-view.js
4. Breakpoint slides to line 30
5. Click again on line 27
6. Click on line 30
Breakpoint doesn't get removed again.
Unlike bug 1008372, the breakpoint does go away after reloading the page.
Comment 1•10 years ago
|
||
Confirmed.
Assignee | ||
Updated•10 years ago
|
Blocks: dbg-breakpoint
Assignee | ||
Comment 2•10 years ago
|
||
The link referred to in step 1 no longer exists, so the steps to reproduce are no longer valid.
Without steps to reproduce, this bug is not actionable, so I'm closing it until further notice. If anyone can come up with up-to-date steps to reproduce, feel free to reopen this bug, or open a new one.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Comment 3•10 years ago
|
||
301 http://todomvc.com/examples/backbone/, I presume?
Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Jonathan Allard from comment #3)
> 301 http://todomvc.com/examples/backbone/, I presume?
Thanks a lot, Jonathan. I can indeed reproduce the bug, using the link you provided.
This looks like a frontend problem. The breakpoint does not disappear in the editor, but it does disappear in the sources view. I'll take a shot at this tomorrow.
Assignee: nobody → ejpbruel
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Assignee | ||
Comment 6•10 years ago
|
||
The problem seems to be that when the breakpoint has an actual location that differs from the requested location, we remove the 'added; promise for the requested location, and re-add it at the actual location, even when we already have a breakpoint for the actual location. This confuses the editor, because certain things end up being done twice for the same breakpoint.
The solution is to check if we already have an 'added' promise for the actual location, and if so, to just return that. I've also removed requestedLocation, because its only ever used in one place, and it fits better in addBreakpoint anyway, so its not necessary.
Attachment #8599279 -
Flags: review?(jlong)
Comment 7•10 years ago
|
||
Comment on attachment 8599279 [details] [diff] [review]
patch
Review of attachment 8599279 [details] [diff] [review]:
-----------------------------------------------------------------
This change makes sense, thanks!
Attachment #8599279 -
Flags: review?(jlong) → review+
Assignee | ||
Comment 8•10 years ago
|
||
Try fun for this patch:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=dd1d468bd0a9
Assignee | ||
Comment 9•10 years ago
|
||
Try run looks almost good. Just forgot to update a test. Here's a second try run with that problem addressed:
https://treeherder.mozilla.org/#/jobs?repo=try&revision=35a783d757e9
Comment 10•10 years ago
|
||
don't forget to land this :)
Comment 11•10 years ago
|
||
needinfo'ing Eddy. This needs to land asap, Wed at the latest.
Flags: needinfo?(ejpbruel)
Assignee | ||
Comment 12•10 years ago
|
||
Argh. I keep forgetting about this bug. Being preoccupied with worker debugging.
I'll land this first thing in the morning. Sorry Jeff!
Flags: needinfo?(ejpbruel)
Comment 14•10 years ago
|
||
Backed out for browser_dbg_breakpoints-actual-location.js failures.
https://treeherder.mozilla.org/logviewer.html#?job_id=3314202&repo=fx-team
https://hg.mozilla.org/integration/fx-team/rev/70fa9da159a0
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
status-firefox41:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 41
Updated•9 years ago
|
Whiteboard: [devedition-40] → [polish-backlog]
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•