Added debug variable to selfbuild