This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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?
A javac switch is required to include debug information in the class file:
Joined: Jan 11, 2005
Originally posted by Rick O'Shay: A javac switch is required to include debug information in the class file:
Your reply is very helpful. Suppose we compile .class file 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 the file which we are going to release?