Forums Register Login

Question about debugging .class file

+Pie Number of slices to send: Send
Hello everyone,


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?


thanks in advance,
George
+Pie Number of slices to send: Send
A javac switch is required to include debug information in the class file:

+Pie Number of slices to send: Send
Thanks Rick,


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?


regards,
George
Lasagna is spaghetti flvored cake. Just like this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1267 times.
Similar Threads
Initializer error
yGuard has trouble dealing with configuration files and JSPs
Trouble with running Maven Tomcat plugin through Eclipse
Could not resolve dependencies for maven project
another Eclipse & JBoss question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:48:04.