简体   繁体   中英

Where to put a flag for extended debugging info?

I'm currently in trouble with serialization, but I found this nice flag which will help me debugging:

-Dsun.io.serialization.extendedDebugInfo=true

My problem is, that after hours of research I still don't know how to use it. I tried to simply write it down in my main method, but that doesn't work.

Where do I have to put this flag?

I use eclipse, so I wonder if I have to edit the settings as well?

If you are launching a Java app from the command line, you supply it as a JVM command line option. It must go after the java command, and before the classname or the -jar option ... whichever you are using.

If you are launching the app from within Eclipse, open the "Run Configurations" wizard, find the config for your application, select the "Program Arguments" panel and add the option to the "JVM Arguments".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM