Re: Question about debugging .class file



George George via JavaKB.com wrote:

Suppose we want to debug a .class file, we will compile it into debug status (so that we can use F6, F7 and F8 in Java IDE to debug .class file). Do you mean the .class file (which we use to debug as mentioned above) is different from (larger than) the file which we are going to release?

A class file with debugging information will be larger than one without. But you can distribute class files with debugging information.


What do you mean "light compilation from source to byte code"?

Java byte code is not like machine code. It's quite high level. The main difference between .java and .class files is that the latter is a binary format. It doesn't go in for heavy optimisation or lossy transformations like C++ compilers do.


Tom Hawtin
--
Unemployed English Java programmer
http://jroller.com/page/tackline/
.



Relevant Pages

  • Ant debug control implementation
    ... How is the control of a debug flag implemtend correctly in an Ant XML ... debug and compile-nodebug target with the only difference being the ... the class files ought to be recreated. ...
    (comp.lang.java.softwaretools)
  • Re: Methodology to remove unused classes?
    ... If you compile with javac just specifying you entry classes, then only reachable classes will be compiled. ... If it's a simple webapp then the entry classes will be servlets, filters, any listeners in web.xml and any you obtain through Class.forName. ... Once you have all of that compiled, list the class files into a text file. ... Unemployed English Java programmer ...
    (comp.lang.java.programmer)