Dmytro Danylyk
04/09/2018, 10:25 AMCoroutineContext#DEBUG
field public and mutable? In android we usually rely on generated BuildConfig.DEBUG
field.elizarov
04/09/2018, 10:26 AMDmytro Danylyk
04/09/2018, 10:27 AMCoroutineContext#DEBUG
field based on if it’s android debug or production build.Dmytro Danylyk
04/09/2018, 10:27 AMBuildConfig.DEBUG
field which is false
if it’s debug build and true
if it;s prodcution.Dmytro Danylyk
04/09/2018, 10:28 AMCoroutineContext.DEBUG = BuildConfig.DEBUG
Dmytro Danylyk
04/09/2018, 10:44 AMelizarov
04/09/2018, 11:01 AMDmytro Danylyk
04/09/2018, 12:06 PMCoroutineContext#DEBUG
?Vsevolod Tolstopyatov [JB]
04/09/2018, 4:26 PMstatic final
variable is that JIT can inline it everywhere and eliminate unnecessary branches/checks etc., so debug code has no influence on performance with debug mode off.
Why changing DEBUG
via kotlinx.coroutines.debug
system property is not applicable?kenkyee
04/09/2018, 5:57 PMDmytro Danylyk
04/09/2018, 9:32 PMDmytro Danylyk
04/09/2018, 9:35 PMVsevolod Tolstopyatov [JB]
04/10/2018, 7:43 AMSystem.setProperty("kotlinx.coroutines.debug", "on")
depending on BuildConfig.DEBUG
in the beginning of Application class is not applicable in such case?elizarov
04/10/2018, 7:45 AMstatic final
field, yet allow for project-specific configuration.Dmytro Danylyk
04/10/2018, 8:13 AMDmytro Danylyk
04/10/2018, 8:14 AMDEBUG_PROPERTY_NAME = "kotlinx.coroutines.debug"
publicDmytro Danylyk
04/10/2018, 8:15 AMDmytro Danylyk
04/10/2018, 8:31 AM