Running code on breakpoint hit event Follow
Answered
How can I listen to breakpoint events for Java debugging when a breakpoint is hit and the JVM is paused? It seems to me like I need to implement
DebugProcessListener
but I don't know how to register it. I can't find an extension point to register this on.
Please sign in to leave a comment.
Have a look at the code https://github.com/JetBrains/intellij-community/search?utf8=%E2%9C%93&q=DebugProcessListener
https://github.com/JetBrains/intellij-community/blob/bc62a61c96dabc24d6a7e76b4a75d37699250521/java/execution/impl/src/com/intellij/execution/scratch/JavaScratchConfiguration.java#L90