tags:

views:

95

answers:

1

Hello,

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.

+1  A: 

If you run javap -v on the class file, you will see the debug information that is available. It is worth compiling a simple test class with different -g option settings and looking at the results with javap.

Stephen C
I agree it is worth, but I wasn't sure what kind of information I should see.
Laurențiu Dascălu
What I'm suggesting is that you just try it out. That will tell you what you *do* see. IMO, that is better than me trying to describe what you *should* see.
Stephen C