[debugger] Include attachments to the debugger errors

GitOrigin-RevId: 2d245c662ce6dce501cb13895e5866a6ffb1edbd
This commit is contained in:
Alexey Merkulov
2024-06-17 16:45:50 +02:00
committed by intellij-monorepo-bot
parent 2d1d6a7aad
commit 0a4bddf993

View File

@@ -172,7 +172,11 @@ object DebuggerDiagnosticsUtil {
@JvmOverloads
fun getAttachments(process: DebugProcessImpl, first: Attachment? = null): Array<Attachment?> {
val paramAttachment = if (first != null) listOf(first) else emptyList()
return (paramAttachment + createStateAttachments(process)).toArray(Attachment.EMPTY_ARRAY)
val result = paramAttachment + createStateAttachments(process)
for (attachment in result) {
attachment.isIncluded = true
}
return result.toArray(Attachment.EMPTY_ARRAY)
}
@JvmStatic