示例#1
0
 private void commandStep(StringTokenizer t) throws NoSessionException {
   ThreadReference current = context.getCurrentThread();
   if (current == null) {
     env.failure("No current thread.");
     return;
   }
   try {
     if (t.hasMoreTokens() && t.nextToken().toLowerCase().equals("up")) {
       runtime.stepOut(current);
     } else {
       runtime.stepIntoLine(current);
     }
   } catch (AbsentInformationException e) {
     env.failure(
         "No linenumber information available -- " + "Try \"stepi\" to step by instructions.");
   }
 }