title: Java/Eclipse debugging: Which thread has the debugger's focus?
body: <p>I have a Java program developed under Eclipse, which has elaborate features embedded in the program intended to assist debugging.  Now that I am adding threads to the mix, these features need to know which thread I am focusing on in the debugger.</p>
  
  <p>The best I have come up with so far is to add a "focus here" instance variable
  to a thread, and manually set it (from the debugger) when I want to direct the
  debugging features attention.</p>
  
  <p>Is there a better way?</p>