1 /* 2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab 3 * Copyright (C) 2009 - DIGITEO 4 * 5 * Copyright (C) 2012 - 2016 - Scilab Enterprises 6 * 7 * This file is hereby licensed under the terms of the GNU GPL v2.0, 8 * pursuant to article 5.3.4 of the CeCILL v.2.1. 9 * This file was originally licensed under the terms of the CeCILL v2.1, 10 * and continues to be available under such terms. 11 * For more information, see the COPYING file which you should have received 12 * along with this program. 13 * 14 */ 15 package org.scilab.modules.gui.utils; 16 17 public class Debug { 18 19 private static final boolean enableDebug = false; 20 /** 21 * DEBUG function 22 */ DEBUG(String callingClass, String msg)23 public static void DEBUG(String callingClass, String msg) { 24 if (enableDebug) { 25 System.err.println("[DEBUG] <" + callingClass + ">: " + msg); 26 } 27 } 28 DEBUG(String msg)29 public static void DEBUG(String msg) { 30 if (enableDebug) { 31 System.err.println("[DEBUG] __unknown_class__ " + Thread.currentThread().toString() + " : " + msg); 32 } 33 } 34 35 } 36