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.
There are many situation where a local variable doesn't get displayed in the "Local Variables" window. This seems to be (sometimes ?) the case when local variables hide fields. I also faced this problem when I debugged eg. into javax.swing.JTable, even if local variables don't hide fields. In all these cases, when I add the variable to the watches or display the value in the tooltip of the editor I get: >"<varname>" is not a known variable in current context< This is really a big problem!
I do not see any problems when evaluating local variables, which hide fields. Can you please describe the exact case that does not work for you? In case of javax.swing.JTable it's normal that you do not see local variables at all. JDK classes are not compiled with debug information, therefore debugger has no way to recognize them.
Hmm, last time I faced this problem was in the JTable I think (I haven't found any documentation about how removing the last row in a table model affects the lead selection index, neither in the API docs nor in Sun's Java tutorial. It seems not to be set < 0. I tried to debug that but couldn't get the necessary debug information, which seemed very odd in that moment.) I know it happend at other, not JTable related places, where local variables hid fields. But I can't remember if those were in JDK classes, too. Sorry for that. I will keep an eye on this. It's ok with me if we leave this issue as RESOLVED INVALID and reopen it if I see this problem in my own classes.
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.