Exemplo n.º 1
0
 @Nullable
 public StackFrame getStackFrame() {
   try {
     return myThreadReference.frame(myIndex);
   } catch (Throwable t) {
     LOG.error(t);
     return null;
   }
 }
 /** 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;
 }