Closed Bug 1256704 Opened 4 years ago Closed 4 years ago

Conditional Breakpoints are set to line 1

Categories

(DevTools :: Debugger, defect, P1)

defect

Tracking

(firefox48 fixed)

RESOLVED FIXED
Firefox 48
Tracking Status
firefox48 --- fixed

People

(Reporter: jlast, Unassigned)

Details

Attachments

(1 file)

It looks like adding a conditional breakpoint via the Context Menu will cause breakpoints to be added to line 1.

Here's an example:
http://recordit.co/Pb922ewVAG
Attached patch 1256704.patchSplinter Review
Attachment #8730804 - Flags: review?(jlong)
This patch makes `_onCmdAddConditionalBreakpoint` consistent with `_onCmdAddBreakpoint`. I'm not sure, if there was a reason that conditional breakpoints were handling setting line differently.

I believe the error came from this expression (e && e.sourceEvent.target.tagName == 'menuitem') being resolved to true when the user selects "add conditional breakpoints" from the contextmenu.
This is basic functionality that should just work, so assigning P1 to this.
Priority: -- → P1
Awesome, thank you! Yes, we forgot to also update that function.
Attachment #8730804 - Flags: review?(jlong) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/23c05cd9fcf5
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.