Re: Question about debugging .class file



On Mon, 29 Aug 2005 02:18:23 GMT, "George George via JavaKB.com"
<forum@xxxxxxxxxx> wrote or quoted :

>When debugging a C or C++ binary file, the file is different from the release
>version of binary file (debug version binary file is larger). My question is,
>if we want to debug a Java binary file (.class file), is the version of file
>(which we use to debug) the same as the file (which we are going to release)?
>If they are different, shall we add some additional options to compiler in
>order to make debug version binary file be different from release version
>binary file?

The main choice is whether to use Java.exe in the JRE or the JDK. The
one in the JDK has extra debugging turned on.


There is also a Javac.exe switch -debug which adds extra stuff to the
class files.

The difference is not nearly so pronounced as in C++.

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Again taking new Java programming contracts.
.



Relevant Pages

  • Re: Question about debugging .class file
    ... Thomas Hawtin wrote: ... >> version of binary file (debug version binary file is larger). ... What do you mean "light compilation from source to byte code"? ...
    (comp.lang.java.help)
  • Re: Question about debugging .class file
    ... George George via JavaKB.com wrote: ... version of binary file. ... My question is, if we want to debug a Java binary file, is the version of file the same as the file? ... For both ye olde C++ on a floppy and Java applet I have come into a company and shrunk the binary considerably by switching off the default debug info. ...
    (comp.lang.java.help)
  • Re: Question about debugging .class file
    ... >version binary file is always different from release version ... it will strip the debug stuff. ... library code bound into the class file. ... http://mindprod.com Again taking new Java programming contracts. ...
    (comp.lang.java.help)
  • [PATCH 4/4] ide-disk: fix issues found by checkpatch.pl
    ... There are no changes to the resulting drivers/ide/ide-disk.o binary file ... -//#define DEBUG ... static int proc_idedisk_read_capacity ... ide_task_t args; ...
    (Linux-Kernel)
  • Re: Question about debugging .class file
    ... >>version of binary file (debug version binary file is larger). ... >The main choice is whether to use Java.exe in the JRE or the JDK. ... So, no matter what methods are used, the debug ...
    (comp.lang.java.help)