Difference between revisions of "ETrice/Development/Tips and tricks"

From Eclipsepedia

Jump to: navigation, search
(New page: = General Eclipse HOWTOs = == Add Tracing to Your Plug-in == code format="Java" private static boolean traceData = false; static { if (Activator.getDefault().isDebugging()) { ...)
 
(Add Tracing to Your Plug-in)
Line 3: Line 3:
 
== Add Tracing to Your Plug-in ==
 
== Add Tracing to Your Plug-in ==
  
[[code format="Java"]]
+
<source lang="Java">
 
private static boolean traceData = false;
 
private static boolean traceData = false;
  
Line 14: Line 14:
 
}
 
}
 
}
 
}
[[code]]
+
</source>

Revision as of 03:35, 16 July 2012

General Eclipse HOWTOs

Add Tracing to Your Plug-in

	private static boolean traceData = false;
 
	static {
		if (Activator.getDefault().isDebugging()) {
			String value = Platform.getDebugOption(
					"de.protos.example/trace/data");
			if (value!=null && value.equalsIgnoreCase(Boolean.toString(true)))
				traceData = true;
		}
	}