IJPL-166 enable coroutine dump a little bit later, log error

GitOrigin-RevId: 214a83e6855634ecc47c6cf8b17f4920336f729a
This commit is contained in:
Vladimir Krivosheev
2024-01-25 15:23:24 +01:00
committed by intellij-monorepo-bot
parent 082d393a4b
commit b6bbebcdae
5 changed files with 255 additions and 191 deletions

View File

@@ -29,8 +29,8 @@ fun isCoroutineDumpHeader(line: String): Boolean {
return line == COROUTINE_DUMP_HEADER || line == COROUTINE_DUMP_HEADER_STRIPPED
}
fun enableCoroutineDump() {
runCatching {
fun enableCoroutineDump(): Result<Unit> {
return runCatching {
DebugProbes.enableCreationStackTraces = false
DebugProbes.install()
}