Closed Bug 1126218 Opened 11 years ago Closed 11 years ago

Simplify SourceActor.prototype._createBreakpoint

Categories

(DevTools :: Debugger, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 38

People

(Reporter: ejpbruel, Assigned: ejpbruel)

Details

Attachments

(1 file)

SourceActor.prototype._createBreakpoint can be simplified significantly. Note that I eventually want to get rid of this function completely. All it does is convert the actual location returned by setBreakpoint (which is a generated location) to an original location. Since setBreakpoint is going to slide on original lines, it should return an actual location that is an original location as well. The plan is to initially move the conversion logic in _createBreakpoint to setBreakpoint, and then to get rid of it completely once we've implemented breakpoint sliding on original lines. In any case, simplifying the logic for createBreakpoint will make it easier for me to integrate it with setBreakpoint in a future patch.
Attached patch patchSplinter Review
Attachment #8555145 - Flags: review?(jlong)
Attachment #8555145 - Flags: review?(jlong) → review?(nfitzgerald)
Attachment #8555145 - Flags: review?(nfitzgerald) → review+
Assignee: nobody → ejpbruel
New try push because the patch on top of which this one is based had some errors: https://treeherder.mozilla.org/#/jobs?repo=try&revision=1fd2aeb66f03
Try run looks green, pushing to fx-team: https://hg.mozilla.org/integration/fx-team/rev/c5f5390dc422
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: