Possible duplicate:Determine if the Java application is running in debug mode in Eclipse
I can run java program in eclipse on run asor debug as.
run as
debug as
Is there any way in java code to check if it was launched with runor debug? I want to do something (e.g. reload a resource) only in debug mode.
run
debug
debug mode
eclipse, , jvm , tcp , , , , , , , , , , .