Re: Question about debugging .class file



Thanks Thomas,



Thomas Hawtin 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

Your reply is very helpful.


regards,
George


--
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-setup/200508/1
.



Relevant Pages

  • How to detect if class file contains debug symbols?
    ... I'm looking for a technique to tell if a class file contains debug ... As added info, here's what we are using in Ant, in case it's an Ant ...
    (comp.lang.java.help)
  • Re: help needed in IBM Websphere
    ... i using IBM Websphere studio application developer v 5.1.2. ... some java projects. ... but i m not able to debug them. ... explain me how to debug a .class file made in the above tool? ...
    (comp.lang.java.help)
  • Re: Question about debugging .class file
    ... >you compile with the debug option, there will be debug code added. ... I do not agree with you that an obfuscator will remove debug information. ... Because debug information is added to .class file, ...
    (comp.lang.java.help)
  • Re: How do I import a user defined class into VisualStudio .net J#
    ... > I'm using Visual Studio .NET with J#. ... > windowyou get a class file. ... > One example if you have a java file called Test.java and you compile this ...
    (microsoft.public.dotnet.vjsharp)
  • Re: Alternative to JVM
    ... compile class file, but can run Java program with help of a different ... language grammer tree to a 2-address / 3-address instruction set. ... class file from Parse Tree directly. ...
    (comp.lang.java.machine)