Add Internal APIs to get debug flag