diff --git a/platform/util/base/src/com/intellij/diagnostic/ThreadDumper.java b/platform/util/base/src/com/intellij/diagnostic/ThreadDumper.java index f7b663ec3537..b45a7ce88dad 100644 --- a/platform/util/base/src/com/intellij/diagnostic/ThreadDumper.java +++ b/platform/util/base/src/com/intellij/diagnostic/ThreadDumper.java @@ -26,6 +26,15 @@ public final class ThreadDumper { private ThreadDumper() { } + /** + * Evaluate to get coroutine dump in debug sessions + * @noinspection unused + */ + @Internal + public static @NotNull String dumpForDebug() { + return getThreadDumpInfo(getThreadInfos(), true).getRawDump(); + } + public static @NotNull String dumpThreadsToString() { StringWriter writer = new StringWriter(); dumpThreadInfos(getThreadInfos(), writer);