title: Determine if a java application is in debug mode in Eclipse
body: <p>I want to change the logging level depending if I'm debbugging or not, but I can't find a code snippet to check if the application is running in debug mode.</p>
  
  <p>I'm using eclipse to debug the application, so if the solution only works within Eclipse it will be fine.</p>