obtain

open override fun obtain(): File

Creates and returns a Kotlin Coroutines Java Agent JAR file.

This method performs the following steps:

  1. Extracts the platform path from the IntelliJ Platform configuration

  2. Loads the product information to determine available JARs

  3. Scans the platform JARs to find the coroutines debug agent class

  4. Creates a JAR file with a manifest specifying the found agent as the Premain-Class

  5. Returns the path to the created JAR file

Return

A File pointing to the created coroutines Java agent JAR

Throws

if no suitable agent class is found in the platform JARs