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.
When debugging with the KVM which is read only i am able to edit the values in the variable view. attempting top change an object reference generates an error however when i try to change a field such as Vector.elementCount the debugger accepts and displays the supplied new value. The best solution to this problem would be to check if the remote VM is read-only and if so then all editors for values should be disabled to avoid confusion.
Right. Appropriate checks needs to be added. Scheduling for 4.2.
The checks and subsequent disabling of value editors will improve the UI so scheduling those for 4.2 is fine, however the fact that the debugger currently shows incorrect values for variables is a bigger problem and should be addressed in the 4.1 final release.
It's unfortunately too late for 4.1. Only P1 issues with major impact can be fixed into 4.1, therefore this will not be addressed in 4.1 final release.
is this issue going to make it to 4.2?
VirtualMachine.canBeModified() is on JDK 1.5 only. :-( Therefore this feature can be implemented for JDK 1.5 and higher only. We need to propagate that information to org.netbeans.modules.debugger.jpda.ui.models.VariablesTableModel.isReadOnly() therefore this will likely require some API change in JPDA debugger... :-(
Fixed in trunk. Please verify whether it works fine for you (on JDK >= 1.5). /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesTableModel.java,v <-- VariablesTableModel.java new revision: 1.11; previous revision: 1.10
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.