I am developing a simple debugger using Java and Java Debugging Interface. I have two classes Debugger and Debuggee. Debugger class consists of logics for debugging. Debuggee class is the class that is being debugged.
When I run the application in the terminal it's working perfectly. In the Debugger VM it expects a few types of events.
- VMStartEvent
- ClassPrepareEvent
- BreakpointEvent
- VMDeathEvent
- VMDisconnectEvent
When running the application in the terminal it's working perfectly. The debuggee node sends ClassPrepareEvent and BreakPointEvents. But when run the application in IntelliJ it does not send ClassPreparationEvent and BreakPointEvent.
It sends VMDeathEvent right after VMStartEvent and then VMDisconnectEvent.
Why does this behavior happen? Is there any configuration that I should set in IntelliJ?