Tuesday, January 22, 2013

Eclipse debug configuration setting and reading

 Here is the way to specify the debug configuration parameters through VM arguments in eclipse.

In VM arguments section, as you can see I have passed following debug parameter.

These parameters I can read in the following way in Java.

String isdebug = System.getProperty("kony.debug");
Boolean DEBUG_MODE = new Boolean(isdebug);

        System.out.println("My application is running in debug mode");
      //Do your action here!!

Other sources:

No comments:

Post a Comment