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

已回答

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

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

0

请先登录再写评论。