[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jdt-debug-dev] Common Questions about functionality in jdt.debug.core
|
>
> For some reason LineBreakpoints and Watchpoints show as hitting the
> breakpointHit() method of my listener however MethodBreakpoints do not.
If your method breakpoints are not being "hit" I'd suspect that they are
not being installed properly. It could be that you specified the signature
of the method incorrectly. Do you have an example method and corresponding
code that sets the breakpoint in that method?
>
> When I check the .isInstalled() property for my breakpoints, it shows
> them as not installed - which seems fine for everything but
> MethodBreakpoints.
If they are not showing as installed, it would support the theory that the
signature has been incorrectly specified.
>
> Plus how do I gain access to objects of the type JavaValue,
> JavaVariable, JavaClassObject, JavaClassType etc. I need to do some
> decisions based on whether certain fields have been accessed, added to
> etc to identify the dynamic behaviour of a design pattern.
You get access to IJavaVariable from IJavaStackFrame.getVariables() - it
returns an array of IJavaVariables. From there, the value of a variable is
an IJavaValue. From a value, you can get its variables, etc. From a value
you can get an IJavaType...
Darin