Idea patches all JavaExec tasks and enables debugger for them. This
causes unexpected breakpoints stops during serialization (IDEA-200192).
An attempt with explicit removing added agentlib:jdwp= parameter breaks
Gradle up-to-date check for this task:
> Task ':core:builtins:serialize' is not up-to-date because:
> Value of input property 'jvmArgs' has changed for task ':core:builtins:serialize'
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com>
Workaround for IDEA-200192
IDEA patches JavaExec tasks and adds
agentlib:jdwp= jvm parameter when running under debug.
Replace parameters after IDEA has finished patching parameters.