Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » findVariable() within breakpointHit inconsistency
findVariable() within breakpointHit inconsistency [message #249997] Tue, 04 December 2007 18:25
Eclipse UserFriend
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.
Previous Topic:Way to enabe JDK1.4 assertions globally in eclipse exists?
Next Topic:Unexplained dependency cycle
Goto Forum:
  


Current Time: Wed Apr 23 10:11:41 EDT 2025

Powered by FUDForum. Page generated in 0.03688 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top