I would like to know how can I check if a compiled Java class contains debug symbols. The problem is that I compile an application from ant with debug=”on”, but a specific JVM throws an exception: it says that the debug symbols are missing.
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you run
javap -von the class file, you will see the debug information that is present in the file.It is worth compiling a simple test class with different
-goption settings and looking at the results withjavap.If, you need to know exactly how
javappresents the information, it is it is best for you to try it out in your Java installation. The output from thejavapcommand may vary between different Java versions.