Bug 293058 - Debugger should be able to watch for field value changes, not just write access
Summary: Debugger should be able to watch for field value changes, not just write access
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-22 11:27 EDT by Max Gilead CLA
Modified: 2009-10-22 12:16 EDT (History)
1 user (show)

See Also:


Attachments
example (2.65 KB, image/png)
2009-10-22 12:16 EDT, Michael Rennie CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Max Gilead CLA 2009-10-22 11:27:04 EDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.1.3) Gecko/20090915 Firefox/3.5.3 (.NET CLR 3.5.30729)
Build Identifier: 

At the moment Eclipse has two options for field watchpoints: access and modification. While useful the latter intercepts all write operations even if they don't change field's value.

I propose to add third option: Field Value Change which would trigger only when actual field's value is changed. 

For example, I'm debugging now a code that does quite a lot of checks like this:

boolean error = false;
error |= checkSomething...
error |= checkSomething...

Current debugger options are not of much help to check which one of them actually sets error field to true.

Reproducible: Always
Comment 1 Darin Wright CLA 2009-10-22 11:46:37 EDT
JDI does not provide this as built in function, but it could be implemented client side. I would suggest an additional check box on the breakpoint property page that configures this.
Comment 2 Michael Rennie CLA 2009-10-22 12:16:14 EDT
Created attachment 150271 [details]
example

Something like this would be cool.