Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » [Local variables not available] problem with debugger
[Local variables not available] problem with debugger [message #258265] Mon, 26 January 2009 13:34 Go to next message
Eclipse UserFriend
Hi,

I am trying to understand the keySet() method of Map interface by
inspecting the class HashMap. I placed a breakpoint on the keySet() method
of HashMap, but the debugger reports "[Local variables not available]".
Consequently, I could not know how the Set is initialized for the first
time and how it is synchronization with the backing map. I can see the
source code for the respective classes so I guess that should not be the
problem. Can anyone suggest me what should I do so as to remove this
problem?


Thanks,
Mahim Lakhani
Re: [Local variables not available] problem with debugger [message #258269 is a reply to message #258265] Mon, 26 January 2009 14:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 1/26/2009 1:34 PM, Mahim Lakhani wrote:
> Hi,
>
> I am trying to understand the keySet() method of Map interface by
> inspecting the class HashMap. I placed a breakpoint on the keySet()
> method of HashMap, but the debugger reports "[Local variables not
> available]". Consequently, I could not know how the Set is initialized
> for the first time and how it is synchronization with the backing map. I
> can see the source code for the respective classes so I guess that
> should not be the problem. Can anyone suggest me what should I do so as
> to remove this problem?

The problem is that the core Java library (rt.jar) does not come
compiled with debugging info enabled, so at runtime the information is
limited.
There has been a long-standing bug report open with Sun to provide a
rt.jar that is compiled with debugging enabled, but I don't know the
current status of that issue.

Eric
Re: [Local variables not available] problem with debugger [message #258303 is a reply to message #258269] Tue, 27 January 2009 02:02 Go to previous message
Eclipse UserFriend
Thanks Eric. I had no idea about that.
Previous Topic:Test plugins with Java projects
Next Topic:Problems with Classpaths?
Goto Forum:
  


Current Time: Sun Apr 20 10:28:43 EDT 2025

Powered by FUDForum. Page generated in 0.03612 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top