This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 4276 - Watch property Value is read/write.
Summary: Watch property Value is read/write.
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P1 major (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1999-10-06 20:19 UTC by Daniel Prusa
Modified: 2003-07-02 16:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Prusa 1999-10-06 20:19:21 UTC
I think, the watch property Value (of variable) should be only `read`.
If I try to modify this property during debugging, the message window with caption Exception and text `Exception in setter method of property: Value` appears.

[IAN] It *should* be possible to modify watches during debugging - the only interesting thing here is the exception, which you did not include...

[Dan]
1) Using Standard Debugging, when I try to modify a local variable, the following exception is thrown:     (and the previously described message window appears)

java.lang.IllegalArgumentException: This version of the debugger does not support changing the value of static or local variables.
        at com.netbeans.developer.modules.debugger.debug.ToolsVariable$1.protect(ToolsVariable.java:143)
        at com.netbeans.developer.modules.debugger.support.util.Protector.run(102)

        at com.netbeans.developer.modules.debugger.support.util.RequestSynchronizer$1.run(62)

The modification of a nonlocal variable is OK (it works).

There is a small inconsistence - add watch for nonlocal variable two times, stop debugger, edit the first watch - a new value is displayed, but the second watch displays the old value. It is OK after
Debugger is runned and stopped again.

2) Using JPDA Debugging - nonlocal variables cannot be modified. They stay unchanged if I try to enter         a new value.
Comment 1 Jan Stola 2000-07-27 16:13:59 UTC
Verified in Build 2011.
Comment 2 Quality Engineering 2003-07-02 16:03:36 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.