Open Bug 1570703 Opened 5 years ago Updated 2 years ago

Watch Expressions should always show up-to-date values.

Categories

(DevTools :: Debugger, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: jlast, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(2 obsolete files)

It would be great if watch expressions always showed the up-to-date value.

We can implement this by registering watch expressions with the server and having the server periodically (100ms) re-evaluate the expressions and send the client updates if the values have changed.

DETAILS:

  1. the server should send one message with the results for all of the expressions
  2. the server should evaluate expressions when pausing and include the results in the pause packet

FOLLOW UPS:

  1. it would be nice to re-evaluate expressions after console evaluations
  2. it would be nice to re-fetch scopes after console evaluations and perhaps highlight changes.
  3. it should be possible for the console to register expressions as well. See live expressions

The UI could either have a flip to make expressions live, or even better be automatic – making expressions live when the Debugger is not paused. Only risk is that watch expressions execute in the paused scope, so their live value would not necessarily be useful.

Having a holistic integration that mirror live watch expressions in the Console for tracking, similar to Chrome's Live Expressions makes this feature discoverable for more users.

This would be a really cool feature. My only concern with polling for value is that we aren't presently tying the expression to a URL or domain, so polling could be expensive. For example, I will occasionally add watch expressions and, not paying attention to them later, will notice I still have the same watch expressions. I guess any hesitance I have would be over how we persist them.

:plus1: harald

that's a good point david. We'd hate for the common case to basically DDOS your tab :)

One aspect that is nice with this design is that the evaluation is done in the server, so if the value is always undefined the client never heres about it.

Assignee: nobody → jlaster
Blocks: dbg-70
Status: NEW → ASSIGNED
Whiteboard: [debugger-reserve]

this is just a prototype

No longer blocks: 1570707
Status: ASSIGNED → UNCONFIRMED
Ever confirmed: false
Whiteboard: [debugger-reserve]
No longer blocks: dbg-70
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #9083098 - Attachment description: Bug 1570703 - Watch Expressions should always show up-to-date values. r=loganfsmyth → Bug 1570703 - Watch Expressions should always show up-to-date values. r=davidwalsh
Priority: -- → P3

Next Steps:

  1. add a feature flag defaulted to on
  2. add onboarding UI
    3 add dynamic interval based on expression evaluation times
  3. update PRD w/ proper milestones
  4. should we rename the panel
Attachment #9083098 - Attachment is obsolete: true
Assignee: jlaster → b4bomsy

Hubert, are you still planning to work on this bug?

Honza

Flags: needinfo?(hmanilla)

No , i'm not sure i'll have time to get back to it soon.

Assignee: b4bomsy → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(hmanilla)
Assignee: nobody → b4bomsy
Status: NEW → ASSIGNED

The bug assignee didn't login in Bugzilla in the last 7 months.
:bomsy, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: b4bomsy → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(hmanilla)

The following patch is waiting for review from an inactive reviewer:

ID Title Author Reviewer Status
D43826 Bug 1570703 - Watch Expressions should always show up-to-date values. r=jlast bomsy nchevobbe: Resigned from review

:bomsy, could you please find another reviewer or abandon the patch if it is no longer relevant?

For more information, please visit auto_nag documentation.

Flags: needinfo?(hmanilla)
Attachment #9088843 - Attachment is obsolete: true

Abandoned the revision. Not in focus atm.

Flags: needinfo?(hmanilla)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: