Closed Bug 1602804 Opened 5 years ago Closed 5 years ago

Removing and setting a set/get watchpoint doesn't work after resuming execution

Categories

(DevTools :: Debugger, defect, P1)

defect

Tracking

(firefox72- wontfix, firefox73 fixed)

VERIFIED FIXED
Firefox 73
Tracking Status
firefox72 - wontfix
firefox73 --- fixed

People

(Reporter: jarilvalenciano, Assigned: jarilvalenciano)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36

Steps to reproduce:

  1. Open http://janodvarko.cz/tests/debugger/watchpoints/
  2. Follow test case #1, and click the "Click Me!" button in step #2
  3. Set a watchpoint (set) on the age property of the person object
  4. Click Resume to pause on the watchpoint
  5. Click Resume again to finish pausing and resume execution
  6. Click on the "Click Me!" button again in test case #1, step #2
  7. Click on the age property's watchpoint marker to remove the watchpoint
  8. Try adding a set/get watchpoint

Actual results:

You should be able to put back the watchpoint after removing it.

Expected results:

Nothing happens.

Error:

JavaScript error: , line 0: uncaught exception: Protocol error (noSuchActor): No such actor for ID: server0.conn0.child1/obj78

Interesting to note that if you step over and then try to add a watchpoint, it does work.

Assignee: nobody → jarilvalenciano

I was able to reproduce on latest Nightly Version 73.0a1 Build ID 20191216214733 on Windows 10, macOS 10.15 and Ubuntu 18.04
Following the steps mentioned by the reporter, it is not possible to add a watchpoint after removing a previous one

Status: UNCONFIRMED → NEW
Component: Untriaged → Debugger
Ever confirmed: true
Product: Firefox → DevTools

Raising the priority here since it breaks the feature.

The patch is attached, close to landing?

Honza

Flags: needinfo?(jarilvalenciano)
Pushed by jlaster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0cc5dce66033
Create WatchpointMap to keep track of objects with watchpoints r=jlast
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 73
Regressions: 1605311
Flags: needinfo?(jarilvalenciano)

Verified - fixed on latest Nightly Version 73.0a1 Build ID 20191222215627 on Windows 10, Ubuntu 18-04 and macOS 10.15

[Tracking Requested - why for this release]: It's not clear to me whether this blocks shipping watchpoints in 72.

Can you request uplift to beta if you think this is necessary for the feature to launch, and if it's not too risky?

Flags: needinfo?(jarilvalenciano)

Jason, maybe you can help out with the uplift request?

Flags: needinfo?(jlaster)

As Jason is out on holidays and this is a larger change late in the cycle, I'll mark this as wontfix for 72.

Flags: needinfo?(jlaster)
Flags: needinfo?(jarilvalenciano)
Regressions: 1607148
Attachment #9115188 - Attachment is obsolete: true

I can confirm this issue is fixed. I verified on Windows 10, macOS 10.15 and Ubuntu 18.04. I'm updating the status flags since this issue is verified as fixed based on Comment 8.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: