findVariable() within breakpointHit inconsistency [message #249997] |
Tue, 04 December 2007 18:25 |
Eclipse User |
|
|
|
Originally posted by: jago.westmacott.googlemail.com
Hi. Within the breakpointHit method of IJavaBreakpointListener, I'm
suspending the thread and then calling the findVariable() function on that
thread. The breakpoint that's been hit is a JavaMethodBreakpoint (Entry
event) and I have the correct variable name (one of the method that has
been hit's params). This works for me about 50% of the time, but often
findVariable is returning null. I've tried casting the thread to a
JDIThread and re-computing the frames, but it doesn't seem to improve
things. I'm obviously missing something, and it's the inconsistency
that's confusing me. I'm re-running the same bit of code programatically
in debug mode, sometimes it works, sometimes it doesn't. The thread always
appears to be suspended ok. Any help/suggestions much appreciated.
|
|
|
Powered by
FUDForum. Page generated in 0.03688 seconds