Is there an api like IJavaBreakpointListener in JDT

I need to impliment a plugin to deal with a breakpoint event, is there something like IJavaBreakpointListener?

5 comments
Comment actions Permalink

What event exactly do you need to handle? IJavaBreakpointListener supports multiple different types of events, and not all of them have equivalents in IntelliJ IDEA.

0
Comment actions Permalink

There are A.java,A.class and B.class generated from A.class,I need to know a whether a breakpoint is A.java and put it at a specific position in B.class, In JDT, I can use addingBreakpoint() in IJavaBreakpointListener and creatRequest in Javabreakpoint. Is there something equivalent in idea?

0
Comment actions Permalink

Yes. To add a listener for receiving a notification when a breakpoint is added, use XDebuggerManager.getInstance(project).getBreakpointManager().addBreakpointListener(). To add a breakpoint, use getBreakpointManager().addLineBreakpoint(). As the breakpoint type in both calls, use XBreakpointUtil.findType("java-line").

0
Comment actions Permalink

Thanks, I'll try that. Is there any document avaliable?

0
Comment actions Permalink

No, not at the moment.


0

Please sign in to leave a comment.