Closed Bug 1577376 Opened 3 months ago Closed 3 months ago

UI for enabling/disabling debugger statements

Categories

(DevTools :: Debugger, enhancement)

70 Branch
enhancement
Not set

Tracking

(firefox71 fixed)

RESOLVED FIXED
Firefox 71
Tracking Status
firefox71 --- fixed

People

(Reporter: chujunlu, Assigned: chujunlu)

Details

Attachments

(1 file)

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

Steps to reproduce:

Jason implemented the server side for disabling debugger statements (https://bugzilla.mozilla.org/show_bug.cgi?id=925269). We plan to add client side support.

  1. Open https://circular-cougar.glitch.me/
  2. Open client.js in editor.
  3. Click line 8 to add a breakpoint before the debugger statement.
  4. Right click the breakpoint in editor or in secondary panel.

Expected results:

An item "Never pause here" shows up in the breakpoint context menu. After clicking that item, run the code, the debugger statement should be skipped.

A "Pause here" item shows up in the context menu for a currently disabled debugger statement, so people can re-enable it.

Add menu items to both secondary panel and editor
Add a mochitest

Attachment #9089301 - Attachment description: UI for disable debugger statement r=jlast → Bug 1577376 - UI for disable debugger statement r=jlast
Pushed by jlaster@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/06a24cba7433
UI for disable debugger statement r=jlast
Status: UNCONFIRMED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 71
Assignee: nobody → chujunlu
QA Whiteboard: [qa-71b-p2]
You need to log in before you can comment on or make changes to this bug.