add $isDebugging and $isTesting to X