Dim IsRunningFromIDE As Boolean = GetSystemProperty("b4j.ide", False) = True Can be useful for logging implementations.