Reputation: 9261
Here is what I am seeing in my debug view. The second picture
I want to examine the state of all the local variables so I can understand why a UnsupportedAudioFileException is being thrown. The first picture looks fine (all the values of the local variables are shown in the variables view). However the second picture, after i step into AudioSystem.getAudioInputstream only shows one local variable, arg0, that I don't even know where that name came from. What happened to the other local variables - providers, audiostream, file ?
I looked at possible other threads. No variables shown in eclipse debugging couldn't be my issue because I set a valid breakpoint inside AudioSystem.getAudioInputstream I don't think my issue is this either Locally declared variables can not be inspected because this class didn't ship with the JDK (got it from an external source)
Does anyone know how to show the correct local variables?
Upvotes: 4
Views: 5092
Reputation: 9261
Actually after looking a bit further in this thread Locally declared variables can not be inspected and the key phrase "the rt.jar that ships with the JDK (where the core Java classes live) is not compiled with full debug information included in the .class files, so the debugger does not have local variable info.", I went back into java perspective and saw that this class file was inside rt.jar
Upvotes: 1
Reputation: 24005
Look at the image in your tab. You can clearly see that you have stepped into a file for which Eclipse does not have the source (the image has the small J with binary to indicate that AudioSystem is a class file).
As such, the debugger does not have the information for local variables. If you would attach source, your debugger would be able to provide you with additional symbols.
Upvotes: 1