在android开发中可以在build.gradle来配置realease和debug,在HarmonyOS中可以通过build-profile.json5文件中通过buildModeSet配置:

在DevEco Studio 中可以通过下面来选择运行debug还是release:

我们可以通过BuildProfile.ets里面的静态变量获取当前运行的是否是debug还是release,这个有点类似于android的BuildConfig.java文件:
export default class BuildProfile {
static readonly HAR_VERSION = '1.0.0';
static readonly BUILD_MODE_NAME = 'debug';
static readonly DEBUG = true;
}
参考资料:
能力说明
实践说明





![镜像拉取失败:[ERROR] Failed to pull docker image](https://img-blog.csdnimg.cn/direct/f002b1272ced4156b25fa9b88651eab6.png)













