Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/380.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Debugging 如何在运行时知道Kony应用程序是以调试模式还是发布模式构建的_Debugging_Cross Platform_Temenos Quantum - Fatal编程技术网

Debugging 如何在运行时知道Kony应用程序是以调试模式还是发布模式构建的

Debugging 如何在运行时知道Kony应用程序是以调试模式还是发布模式构建的,debugging,cross-platform,temenos-quantum,Debugging,Cross Platform,Temenos Quantum,我希望能够以编程方式确定应用程序是在调试模式还是发布模式下构建的。我希望能够写一些东西,比如: if(isDebug){ //做一件事。 } 否则{ //做点别的。 } 使用Chrome调试器后,我能够找到解决方案。在构建过程中设置了一个常量,您可以查询该常量以确定应用程序是在调试模式还是发布模式下构建的 if(kony.constants.RUNMODE==“debug”| | appConfig.isDebug){ //做一件事。 } 否则{ //做点别的。 }

我希望能够以编程方式确定应用程序是在调试模式还是发布模式下构建的。我希望能够写一些东西,比如:

if(isDebug){
//做一件事。
}
否则{
//做点别的。
}

使用Chrome调试器后,我能够找到解决方案。在构建过程中设置了一个常量,您可以查询该常量以确定应用程序是在调试模式还是发布模式下构建的

if(kony.constants.RUNMODE==“debug”| | appConfig.isDebug){
//做一件事。
}
否则{
//做点别的。
}