Package com.sun.jdi

Examples of com.sun.jdi.Location.lineNumber()


      for (int i=0; i<frames.size(); i++) {
        StackFrame frame = frames.get(i);
        Location loc = frame.location();
        String name = loc.declaringType().name() + "."
            + loc.method().name();
        String frameInfo = name + " line: " + loc.lineNumber();
        if (i == threadStack.getCurFrame()) {
          frameInfo = frameInfo + "  (current frame) ";
        }
        result.add(frameInfo);
      }
View Full Code Here


      sb.append(status);
     
      if (ref.isAtBreakpoint()) {
        Location loc = ref.frame(0).location();
        sb.append("(breakpoint at line ");
        sb.append(loc.lineNumber());
        sb.append(" in ").append(loc.declaringType().name());
        sb.append(") ");
      }
      sb.append(")").append(" uniqueId : ").append(ref.uniqueID());
      sb.append("\n");
View Full Code Here

    List<Breakpoint> allBreakpoints = bpm.getAllBreakpoints();
    Breakpoint breakpoint = null;
   
    Location loc = event.location();
    String className = loc.declaringType().name();
    int lineNum = loc.lineNumber();

    for (Breakpoint bp : allBreakpoints) {
      if (bp.getMainClass().equals(className) && bp.getLineNum() == lineNum) {
        breakpoint = bp;
        break;
View Full Code Here

    threadStack.setCurThreadRef(threadRef);
   
    Location loc = event.location();
    Debugger debugger = Debugger.getInstance();
    String className = loc.declaringType().name();
    int lineNum = loc.lineNumber();

    CompilerContext ctx = debugger.getCompilerContext();
    String abPath = "None";
    try {
      abPath = ctx.findSourceFile(loc.sourcePath());
View Full Code Here

    Method origMethod = origLocation.method();
    Method currMethod = location.method();
    if (!origMethod.equals(currMethod)) {
      return false;
    }
    if (origLocation.lineNumber() != location.lineNumber()) {
      return false;
    }
    return true;
  }
View Full Code Here

            {
                Location location = frame.location();
                StackTraceElement trace = new StackTraceElement( location.declaringType().name(),
                                                                 location.method().name(),
                                                                 sourceFileName( location ),
                                                                 location.lineNumber() );
                out.println( "\tat " + trace );
            }
        }
        catch ( IncompatibleThreadStateException e )
        {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.