コード例 #1
0
 @Nullable
 public StackFrame getStackFrame() {
   try {
     return myThreadReference.frame(myIndex);
   } catch (Throwable t) {
     LOG.error(t);
     return null;
   }
 }
コード例 #2
0
 /** if this line can not be current => stepOver & return true. return false on the other hand. */
 boolean resolveCanBeCurrent(ThreadReference tr) {
   try {
     Location l = tr.frame(0).location();
     if (l == null) return false;
     return resolveCanBeCurrent(
         tr, Utils.getLineForSource(l.declaringType().name(), l.sourceName(), l.lineNumber()));
   } catch (Exception e) {
   }
   return false;
 }