[debugger] IDEA-352355 registry key to enable async stack traces for flows

GitOrigin-RevId: 8fea2b87f4e33369a583f720ffb1d4ca137173ea
This commit is contained in:
Alexander Kuznetsov
2024-08-28 11:07:19 +02:00
committed by intellij-monorepo-bot
parent 97111e7f7c
commit 42e63cac7e
2 changed files with 5 additions and 0 deletions

View File

@@ -245,6 +245,9 @@ public class RemoteConnectionBuilder {
if (Registry.is("debugger.async.stacks.coroutines", false)) {
parametersList.addProperty("kotlinx.coroutines.debug.enable.creation.stack.trace", "false");
parametersList.addProperty("debugger.agent.enable.coroutines", "true");
if (Registry.is("debugger.async.stacks.flows", false)) {
parametersList.addProperty("kotlinx.coroutines.debug.enable.flows.stack.trace", "true");
}
}
}
}

View File

@@ -584,6 +584,8 @@ debugger.capture.points.annotations=false
debugger.collection.watchpoints.enabled=false
debugger.async.stacks.coroutines=true
debugger.async.stacks.coroutines.description=Enable async stack traces for coroutines
debugger.async.stacks.flows=false
debugger.async.stacks.flows.description=Enable async stack traces for Kotlin flows (MutableSharedFlow and MutableStateFlow)
debugger.async.stacks.max.depth=500
debugger.async.stacks.max.depth.description=Maximum depth of captured async stacks
debugger.log.async.stacks=false