![]() This attribute is important for debugging to bind the variable in source code to local variables in stacks. In JVM specification, we know that code structures contain an attribute naming “LocalVariableTable” which used to describe the local variables. ![]() I have a LocalVariableTableTest class, and compile it using javac, then move the manually compiled class file into my target classes folder:Īfter doing this, I set a break-point in line 10 and start to debug, this time we can find out we can’t see the argument number either:Īnd of course I can’t resolve the value of number, because JVM totally has no idea what does this mean. ![]() That’s too bad, and to explain this, we can test locally. In fact, when compile the java source code in eclipse of rt.jar, oracle chose to remove the debug information so that we can’t debug directly for local variables even if we can see the source code. I met an issue when I wanted to debug jdk source code that eclipse can’t resolve the value of the arguments in functions and it’s not able to see the arguments’ name, however the arguments values are readable in variables view:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |