João Cana Verde
04/25/2025, 4:56 PMkotlinx.coroutines.debug
to be enabled both in production and in tests, so I've added a @Configuration
and I've confirmed that this runs:
DebugProbes.sanitizeStackTraces = false
DebugProbes.enableCreationStackTraces = enableCreationStackTraces // disabled for prod, enabled for tests
System.setProperty(
kotlinx.coroutines.DEBUG_PROPERTY_NAME,
kotlinx.coroutines.DEBUG_PROPERTY_VALUE_ON
)
DebugProbes.install()
But I still get a super limited stack trace when I run my test. Is this the right way to set it up? I've also added a @CoroutinesTimeout
to my test class but that didn't help either.
What am I missing?reformator
04/26/2025, 12:11 AMJoão Cana Verde
04/28/2025, 8:59 AMreformator
04/28/2025, 11:52 AMJoão Cana Verde
04/28/2025, 1:22 PM