Possible Duplicate:
Determine if a java application is in debug mode in Eclipse
I can start a java program in eclipse by run as
or debug as
.
Is there any way in the java code to check if it was started by run
or debug
? I want to do something(e.g. reloading resource) when it's in debug mode
only.