[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
Re: How to add IJavaBreakpointListener?
|
The IJavaBreakpointListener is alive and well (as far as we know). The JDT
debug model uses the interface internally to implement "suspend on
compilation errors". Please file any bugs you have encountered (test cases
will help).
Darin
"Fredrik" <no@xxxxxxxxxxx> wrote in message
news:ajb9av$41a$2@xxxxxxxxxxxxxxxx
> Hi Tim,
>
> I get exactly the same behaviour; the only difference is that I use
>
> JDIDebugModel.addJavaBreakpointListener( listenerClass );
>
> ...where listenerClass implements IJavaBreakpointListener.
> Same result: none of the methods are called. Ever. And I haven't seen any
> other
> post mentioning this problem except yours.
>
> However, there is a workaround. Let your listenerClass implement
> IBreakpointListener
> (from org.eclipse.debug.core) instead and add it with
>
> DebugPlugin.getDefault().getBreakpointManager().addBreakpointListener(
> listenerClass );
>
> It's a light version - only three notifications for added, changed and
> removed breakpoints.
> But it might be enough for you.
>
> Good luck,
>
> /Fredrik
>
> "Tim" <kachung_ho@xxxxxxxxx> wrote in message
> news:agdu8b$7r0$1@xxxxxxxxxxxxxxxx
> > Hello,
> >
> > I am trying to handle the java breakpoint event through the use of the
> > IJavaBreakpointListener. I tried to use:
> >
> > JDIDebugPlugin.getDefault().addJavaBreakpointListener(new MyListener());
> >
> > where MyListener is a class which implements IJavaBreakpointListener
> > interface. I put this line in my plugin class.
> >
> > However, none of the method inside MyListener is called during the debug
> > process even a breakpoint is hit. (I run my plugin in a runtime
workbench
> > and run a simple java program inside it.)
> >
> > Is there anything I missed?
> >
> > Thanks.
> >
> > Tim
> >
>
>
>
>