This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes ow to verify class files compiled with debugging enabled Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "ow to verify class files compiled with debugging enabled" Watch "ow to verify class files compiled with debugging enabled" New topic
Author

ow to verify class files compiled with debugging enabled

Robert Edmonston
Greenhorn

Joined: Aug 08, 2003
Posts: 11
Is there a way to verify if a given class file has been compiled with debugging symbols (besides trying to use it in a debugger and failing). Thanks!
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

The "javap" disassembler (in the JDK) can show you the local variable tables; if they're there, then the file was compiled -g. If they're not, then it wasn't.


[Jess in Action][AskingGoodQuestions]
Robert Edmonston
Greenhorn

Joined: Aug 08, 2003
Posts: 11
Thank you!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ow to verify class files compiled with debugging enabled