How can my plugin change debugger configuration when I click the 'debug' button in IDEA?

Answered

My plugin wants to change VM paramater in debugger configuration when I click the 'debug' button.

I used DebuggerManagerListener.sessionCreated(DebuggerSession session) to change debugger configuration. But when I click the 'debug' button, the debug session has been craeted with old VM paramater. Debug session with new VM paramater will be created at next time I click the 'debug' button.

How can my plugin change debugger configuration when I click the 'debug' button, and this time's debug session is created with new VM paramater?

1
1 comment

See com.intellij.execution.RunConfigurationExtension extension point and provide updateJavaParameters() customization.

0

Please sign in to leave a comment.