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.
Build: NetBeans IDE 7.0 (Build 201104080000) VM: Java HotSpot(TM) Client VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07 OS: Windows XP User Comments: gmorcos: i was trying to view the value of a string attribute and updating it using the debugger Stacktrace: java.lang.IllegalArgumentException: frame method different than variable's method at com.sun.tools.jdi.LocalVariableImpl.isVisible(LocalVariableImpl.java:105) at com.sun.tools.jdi.StackFrameImpl.setValue(StackFrameImpl.java:252) at org.netbeans.modules.debugger.jpda.jdi.StackFrameWrapper.setValue(StackFrameWrapper.java:318) at org.netbeans.modules.debugger.jpda.models.ObjectLocalVariable.setValue(ObjectLocalVariable.java:182) at org.netbeans.modules.debugger.jpda.models.AbstractVariable.setValue(AbstractVariable.java:245) at org.netbeans.modules.debugger.jpda.ui.models.VariablesTableModel.setValueAt(VariablesTableModel.java:264)
Created attachment 109643 [details] stacktrace
Do you have some sub-class in the method that has the string attribute? From the exception it looks like the debugger is not suspended in the method that have the string parameter. Is it the case for you?
i was using the debugger in the fooBean class cause i need to change a string attribute value before calling a method in the fooDataRetrieval class. the string attribute is a local temp value and is not part of the fooBean.
Can you please provide some code snippet that can be used to reproduce this exception? I did not manage to reproduce it. But as the exception indicates that the local variable is in some different scope, it may not be possible to fix it.